Permalink
Browse files

Don't check column type, you might implement a custom coder that seri…

…alizes to a different type
  • Loading branch information...
1 parent 7895182 commit d5f7884dc5e74cd876f031ea2d4467cec18defbb @jonleighton jonleighton committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/attribute_methods/serialization.rb
@@ -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

0 comments on commit d5f7884

Please sign in to comment.