diff options
author | Matt Jones <al2o3cr@gmail.com> | 2012-09-05 11:01:26 -0400 |
---|---|---|
committer | Matt Jones <al2o3cr@gmail.com> | 2012-09-05 11:01:26 -0400 |
commit | 20f943ffd86ae3f74cc16c6f85fb7cc2a43da388 (patch) | |
tree | e47f1ed8922a0a0b3aa92a6ffa134e89cc47fe42 /activerecord/test/models/admin | |
parent | 27acd1e0d29c43dddd9c62b041a16c6e71e7bcf4 (diff) | |
download | rails-20f943ffd86ae3f74cc16c6f85fb7cc2a43da388.tar.gz rails-20f943ffd86ae3f74cc16c6f85fb7cc2a43da388.tar.bz2 rails-20f943ffd86ae3f74cc16c6f85fb7cc2a43da388.zip |
correctly flag changed attributes in AR::Store, combine multiple calls to store_accessor
Diffstat (limited to 'activerecord/test/models/admin')
-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 ad30039304..6c4eb03b06 100644 --- a/activerecord/test/models/admin/user.rb +++ b/activerecord/test/models/admin/user.rb @@ -1,6 +1,7 @@ class Admin::User < ActiveRecord::Base belongs_to :account store :settings, :accessors => [ :color, :homepage ] + store_accessor :settings, :favorite_food store :preferences, :accessors => [ :remember_login ] store :json_data, :accessors => [ :height, :weight ], :coder => JSON store :json_data_empty, :accessors => [ :is_a_good_guy ], :coder => JSON |