diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-13 17:04:04 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-13 17:04:04 -0600 |
commit | f61d9755964af3c1812e75238e34b53ffb1f0b6a (patch) | |
tree | 5a487892e7e4a3d4c33e6794d70d8680a3bbe2a6 /activerecord/lib/active_record/serializers | |
parent | b0f07abbe385463cb03cfc890b85bb8ce3d5ccef (diff) | |
download | rails-f61d9755964af3c1812e75238e34b53ffb1f0b6a.tar.gz rails-f61d9755964af3c1812e75238e34b53ffb1f0b6a.tar.bz2 rails-f61d9755964af3c1812e75238e34b53ffb1f0b6a.zip |
Remove `serialized?` from the type interface
Diffstat (limited to 'activerecord/lib/active_record/serializers')
-rw-r--r-- | activerecord/lib/active_record/serializers/xml_serializer.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/serializers/xml_serializer.rb b/activerecord/lib/active_record/serializers/xml_serializer.rb index 019fe2218e..c2484d02ed 100644 --- a/activerecord/lib/active_record/serializers/xml_serializer.rb +++ b/activerecord/lib/active_record/serializers/xml_serializer.rb @@ -182,11 +182,7 @@ module ActiveRecord #:nodoc: klass = @serializable.class column = klass.columns_hash[name] || Type::Value.new - type = if column.serialized? - super - else - column.type - end + type = ActiveSupport::XmlMini::TYPE_NAMES[value.class.name] || column.type { :text => :string, :time => :datetime }[type] || type |