Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change example to use create instead of create_settings_class

  • Loading branch information...
commit 2511730f52843c0839c95fb72cba879b5231ddcb 1 parent 3ee14cb
@JoshCheek authored
View
2  examples/generic_settings.rb
@@ -3,7 +3,7 @@
# tell it to create us a settings class named Settings
# this means you must have a table in your db named 'settings'
-ARSettings.create_settings_class 'Settings'
+ARSettings.create 'Settings'
# add and change a setting
Settings.has_setting :domain , :default => 'localhost:3000'
View
2  examples/namespaced.rb
@@ -3,7 +3,7 @@
# tell it to create us a settings class named Settings
# this means you must have a table in your db named 'settings'
-ARSettings.create_settings_class 'Settings'
+ARSettings.create 'Settings'
# you can package settings together under a namespace
View
2  examples/on_activerecord_class.rb
@@ -3,7 +3,7 @@
# tell it to create us a settings class named Settings
# this means you must have a table in your db named 'settings'
-ARSettings.create_settings_class 'Settings'
+ARSettings.create 'Settings'
class User < ActiveRecord::Base
has_setting(:site_admin) { |user| user.name }
View
2  examples/on_any_class.rb
@@ -3,7 +3,7 @@
# tell it to create us a settings class named Settings
# this means you must have a table in your db named 'settings'
-ARSettings.create_settings_class 'Settings'
+ARSettings.create 'Settings'
class Water
Please sign in to comment.
Something went wrong with that request. Please try again.