提交 a5d8f0be 编写于 作者: A Aaron Patterson

this method should be private

上级 351331fb
......@@ -1470,13 +1470,6 @@ def init_with(coder)
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 @@ def clone_attribute_value(reader_method, attribute_name)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册