Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

overriding not working when nesting? #10

Open
marceloverdijk opened this Issue Feb 25, 2010 · 0 comments

Comments

Projects
None yet
1 participant

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment