提交 035b4244 编写于 作者: J Jon Leighton

Don't need second param

上级 efcc95ac
......@@ -94,15 +94,15 @@ def _read_attribute(attr_name)
value = @attributes[attr_name]
unless value.nil?
if column = column_for_attribute(attr_name)
type_cast_attribute(column, value)
type_cast_attribute(column)
else
value
end
end
end
def type_cast_attribute(column, value) #:nodoc:
column.type_cast(value)
def type_cast_attribute(column) #:nodoc:
column.type_cast(@attributes[column.name])
end
private
......
......@@ -64,7 +64,7 @@ def set_serialized_attributes
end
end
def type_cast_attribute(column, value)
def type_cast_attribute(column)
coder = self.class.serialized_attributes[column.name]
if column.text? && coder
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册