aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/store.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-07-07 16:35:45 +0900
committerkennyj <kennyj@gmail.com>2012-07-07 16:36:21 +0900
commit75322ac5b84198b16ad2202888a620ffec6ca9aa (patch)
tree47f7c2d9f218cc43c667db31e1e112c9deb53425 /activerecord/lib/active_record/store.rb
parent9f5d2b12025958d024cbe5666dfef80b225dde2c (diff)
downloadrails-75322ac5b84198b16ad2202888a620ffec6ca9aa.tar.gz
rails-75322ac5b84198b16ad2202888a620ffec6ca9aa.tar.bz2
rails-75322ac5b84198b16ad2202888a620ffec6ca9aa.zip
Added *instance_writer: false* for stored/serialized attributes.
Diffstat (limited to 'activerecord/lib/active_record/store.rb')
-rw-r--r--activerecord/lib/active_record/store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/store.rb b/activerecord/lib/active_record/store.rb
index 2af5b02fb7..d836acf18f 100644
--- a/activerecord/lib/active_record/store.rb
+++ b/activerecord/lib/active_record/store.rb
@@ -43,7 +43,7 @@ module ActiveRecord
extend ActiveSupport::Concern
included do
- class_attribute :stored_attributes
+ class_attribute :stored_attributes, instance_writer: false
self.stored_attributes = {}
end