lib/ballast/configuration.rb in ballast-1.9.0 vs lib/ballast/configuration.rb in ballast-1.9.1
- old
+ new
@@ -19,9 +19,10 @@
environment ||= Rails.env
sections.each do |section|
content = (YAML.load_file("#{root}/config/#{section}.yml") rescue {}).with_indifferent_access
self[section] = content[environment]
+ self[section.underscore] = self[section] if section.index("-")
end
self.enable_dotted_access
end
end
\ No newline at end of file