lib/rails-settings/settings.rb in rails-settings-cached-0.2.2 vs lib/rails-settings/settings.rb in rails-settings-cached-0.2.3

- old
+ new

@@ -89,10 +89,10 @@ new_value end def self.object(var_name) - thing_scoped.find_by_var(var_name.to_s) + thing_scoped.where(:var => var_name.to_s).first end #get the value field, YAML decoded def value YAML::load(self[:value])