lib/sifttter_redux/configuration.rb in sifttter-redux-0.5.3 vs lib/sifttter_redux/configuration.rb in sifttter-redux-0.5.4
- old
+ new
@@ -27,10 +27,10 @@
Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2 }
target.merge! data, &merger
end
def method_missing(name, *args, &block)
- @_data[name.to_sym] || {}
+ @_data[name.to_sym] || @_data.merge!(name.to_sym => {})
end
def self.add_section(section_name)
@_data[section_name] = {} unless @_data.key?(section_name)
end