diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-11-30 22:45:35 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-11-30 23:18:40 +0000 |
commit | d5f7884dc5e74cd876f031ea2d4467cec18defbb (patch) | |
tree | d1e2ff82c06c9d15c269c62af5e154a15f2161c5 /activerecord/lib | |
parent | 7895182d0fce11131024305f53d0cbb32817e65c (diff) | |
download | rails-d5f7884dc5e74cd876f031ea2d4467cec18defbb.tar.gz rails-d5f7884dc5e74cd876f031ea2d4467cec18defbb.tar.bz2 rails-d5f7884dc5e74cd876f031ea2d4467cec18defbb.zip |
Don't check column type, you might implement a custom coder that serializes to a different type
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/serialization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/serialization.rb b/activerecord/lib/active_record/attribute_methods/serialization.rb index bc7e9d7a94..b084fdc25b 100644 --- a/activerecord/lib/active_record/attribute_methods/serialization.rb +++ b/activerecord/lib/active_record/attribute_methods/serialization.rb @@ -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 |