lib/rails-settings/settings.rb in rails-settings-cached-0.1.2 vs lib/rails-settings/settings.rb in rails-settings-cached-0.2.0
- old
+ new
@@ -1,9 +1,9 @@
module RailsSettings
class Settings < ActiveRecord::Base
- set_table_name 'settings'
+ self.table_name = 'settings'
class SettingNotFound < RuntimeError; end
cattr_accessor :defaults
@@defaults = {}.with_indifferent_access
@@ -107,6 +107,6 @@
self.scoped_by_thing_type_and_thing_id(nil, nil)
end
end
-end
\ No newline at end of file
+end