lib/settings.rb in persistent_settings-1.1.0 vs lib/settings.rb in persistent_settings-1.1.1

- old
+ new

@@ -45,10 +45,14 @@ self.send("#{setting.var}=", setting.value) end end def self.load_from_persistance - load_from_persistance! if connected? && table_exists? + load_from_persistance! if ready? + end + + def self.ready? + connected? && table_exists? end def self.keys Settings.select(:var).collect { |s| s.var.to_sym } end