diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-03 09:09:27 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-03 09:09:27 -0800 |
commit | a5d8f0be006e5b77d9a82b59407c8d0585f87d41 (patch) | |
tree | da3f19804555c2f933ac805a1ee46b2d9ce46e1d /activerecord | |
parent | 351331fb343cdf17baa078943898ded6caff9d65 (diff) | |
download | rails-a5d8f0be006e5b77d9a82b59407c8d0585f87d41.tar.gz rails-a5d8f0be006e5b77d9a82b59407c8d0585f87d41.tar.bz2 rails-a5d8f0be006e5b77d9a82b59407c8d0585f87d41.zip |
this method should be private
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index e0957e2849..e4a425627f 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1470,13 +1470,6 @@ MSG run_callbacks :initialize end - def set_serialized_attributes - (@attributes.keys & self.class.serialized_attributes.keys).each do |key| - coder = self.class.serialized_attributes[key] - @attributes[key] = coder.load @attributes[key] - end - end - # Specifies how the record is dumped by +Marshal+. # # +_dump+ emits a marshalled hash which has been passed to +encode_with+. Override this @@ -1740,6 +1733,13 @@ MSG private + def set_serialized_attributes + (@attributes.keys & self.class.serialized_attributes.keys).each do |key| + coder = self.class.serialized_attributes[key] + @attributes[key] = coder.load @attributes[key] + end + end + # Sets the attribute used for single table inheritance to this class name if this is not the # ActiveRecord::Base descendant. # Considering the hierarchy Reply < Message < ActiveRecord::Base, this makes it possible to |