lib/rails-settings/settings.rb in rails-settings-cached-0.5.2 vs lib/rails-settings/settings.rb in rails-settings-cached-0.5.3

- old
+ new

@@ -58,10 +58,12 @@ result = {} vars.each do |record| result[record.var] = record.value end - result.merge! @@defaults.slice(*(@@defaults.keys - result.keys)) + default_keys = @@defaults.keys + default_keys = default_keys.select {|k| k.start_with? starting_with } if starting_with + result.merge! @@defaults.slice(*(default_keys - result.keys)) result.with_indifferent_access end def where(sql = nil)