mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Don't check column type, you might implement a custom coder that serializes to a different type
This commit is contained in:
@@ -81,7 +81,7 @@ module ActiveRecord
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user