aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/admin
diff options
context:
space:
mode:
authorThales Oliveira <oliveiraethales@gmail.com>2014-01-05 20:55:02 -0200
committerThales Oliveira <oliveiraethales@gmail.com>2014-01-06 11:36:19 -0200
commit901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b (patch)
tree70a52311aec61c1fb8f9233009cbe43439eca122 /activerecord/test/models/admin
parent3a48b83e5eec62a5d2bfab1a118c24b45345388c (diff)
downloadrails-901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b.tar.gz
rails-901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b.tar.bz2
rails-901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b.zip
Fix: ActiveRecord::Store TypeError conversion when using YAML coder
Renaming the test accordingly to its behaviour Adding 'Fixes' statement to changelog Improving tests legibility & changelog Undoing mistakenly removed empty line & further improving changelog
Diffstat (limited to 'activerecord/test/models/admin')
-rw-r--r--activerecord/test/models/admin/user.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/admin/user.rb b/activerecord/test/models/admin/user.rb
index 4c3b71e8f9..9a80aaba01 100644
--- a/activerecord/test/models/admin/user.rb
+++ b/activerecord/test/models/admin/user.rb
@@ -14,6 +14,7 @@ class Admin::User < ActiveRecord::Base
end
belongs_to :account
+ store :params, accessors: [ :color ], coder: YAML
store :settings, :accessors => [ :color, :homepage ]
store_accessor :settings, :favorite_food
store :preferences, :accessors => [ :remember_login ]