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

- old
+ new

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