The best place to declare application constants would be in the .rb file in the config / initializers folder. Declaring a constant in the initializer (or, as you did in config / application.rb) makes it available in all models / controllers / views in your application.
source share