diff options
author | Geoff Petrie & Sean Griffin <g.petrie+sean@gmail.com> | 2014-06-01 11:40:40 -0600 |
---|---|---|
committer | Geoff Petrie <g.petrie@gmail.com> | 2014-06-01 11:42:53 -0600 |
commit | 29cbfa2f33b2d0e2d16a203941998687af7831db (patch) | |
tree | 243e61b2dd078edf368f8111d31d98b4be45fde7 /activerecord/lib | |
parent | 260c384bdb539265b31d3937df48e528acb50800 (diff) | |
download | rails-29cbfa2f33b2d0e2d16a203941998687af7831db.tar.gz rails-29cbfa2f33b2d0e2d16a203941998687af7831db.tar.bz2 rails-29cbfa2f33b2d0e2d16a203941998687af7831db.zip |
Test the serialized types of virtual columns in XML
The previous tests were passing, because nothing ever looked at the
generated XML. What was previously being generated was
`<firstname type="NilClass">...`, which is not consistent with all other
cases where there is not a known type.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/serializers/xml_serializer.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/serializers/xml_serializer.rb b/activerecord/lib/active_record/serializers/xml_serializer.rb index 1a766093d0..08e8346b49 100644 --- a/activerecord/lib/active_record/serializers/xml_serializer.rb +++ b/activerecord/lib/active_record/serializers/xml_serializer.rb @@ -184,8 +184,6 @@ module ActiveRecord #:nodoc: super elsif klass.columns_hash.key?(name) klass.columns_hash[name].type - else - NilClass end { :text => :string, |