Constants of rails application can be used in shared config file instead of using it in different development.rb and production.rb for different environments.
You can create ruby config file "shared.rb" in "config/environments/" folder of your rails application.
Then just add one statement in "config/environment.rb" file to use shared file throughout the application as following:
require 'environments/shared'
No comments:
Post a Comment