lib/settings.rb in settings-goo-0.3.2 vs lib/settings.rb in settings-goo-0.3.3

- old
+ new

@@ -21,14 +21,10 @@ self[:value] = val.to_json end def self.[](key) setting = find_cached(key) - if setting - setting.value - else - nil - end + setting ? setting.value : nil end def self.[]=(key, val) return nil if key.blank? setting = Settings.find_key(key.to_s)