this method should be private

This commit is contained in:
Aaron Patterson
2011-02-03 09:09:27 -08:00
parent 351331fb34
commit a5d8f0be00

View File

@@ -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