diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-10-13 16:23:48 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-10-13 16:24:22 -0500 |
commit | 85b64f98d100d37b3a232c315daa10fad37dccdc (patch) | |
tree | e1f4b621240502e7cb9b5530495840c2e8315c52 /activerecord/test/models | |
parent | 8f11d53506ea7ef2fd4cd28581f5eedd9be9e570 (diff) | |
download | rails-85b64f98d100d37b3a232c315daa10fad37dccdc.tar.gz rails-85b64f98d100d37b3a232c315daa10fad37dccdc.tar.bz2 rails-85b64f98d100d37b3a232c315daa10fad37dccdc.zip |
Added ActiveRecord::Base.store for declaring simple single-column key/value stores [DHH]
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/admin/user.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/admin/user.rb b/activerecord/test/models/admin/user.rb index 74bb21551e..275a03c344 100644 --- a/activerecord/test/models/admin/user.rb +++ b/activerecord/test/models/admin/user.rb @@ -1,3 +1,4 @@ class Admin::User < ActiveRecord::Base belongs_to :account + store :settings, accessors: [ :color, :homepage ] end
\ No newline at end of file |