Created
June 27, 2014 08:21
-
-
Save sibsfinx/8a92f5726eaf1d32d79d to your computer and use it in GitHub Desktop.
how to use *.yml.local settings in Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/0_settings.rb | |
class Settings < Settingslogic | |
source "#{Rails.root}/config/application.yml" | |
source "#{Rails.root}/config/application.local.yml" | |
namespace Rails.env | |
suppress_errors Rails.env.production? | |
Rails.configuration.action_mailer.merge!(self.action_mailer.symbolize_keys) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/application.local.yml | |
# your local config here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment