提交 d5f7884d 编写于 作者: J Jon Leighton

Don't check column type, you might implement a custom coder that serializes to a different type

上级 7895182d
......@@ -81,7 +81,7 @@ def set_serialized_attributes
end
def type_cast_attribute(column)
if column.text? && self.class.serialized_attributes.include?(column.name)
if self.class.serialized_attributes.include?(column.name)
@attributes[column.name].unserialized_value
else
super
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册