settingslogic
settingslogic copied to clipboard
overriding not working when nesting?
I have the following config: defaults: &defaults google_analytics: enabled: false web_property_id: 12345-1
development: <<: *defaults
test: <<: *defaults
production: <<: *defaults google_analytics: enabled: true
In development:
Rails.env => "development" Settings.google_analytics.enabled => false Settings.google_analytics.web_property_id => "12345-1"
In production:
Rails.env => "production" Settings.google_analytics.enabled => true Settings.google_analytics.web_property_id Settingslogic::MissingSetting: Missing setting 'web_property_id' in 'google_analytics' section in /Users/marceloverdijk/Projects/elections/config/application.yml from /Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:117:in `method_missing' from (irb):3
I would expected the default web_property_id to be returned.
Am I doing something wrong here?