Move polymorphic type into the serializable_hash

This commit is contained in:
Adman65
2011-12-12 14:33:18 +01:00
parent 9fa716e452
commit 638614ffde
2 changed files with 6 additions and 4 deletions

View File

@@ -703,8 +703,8 @@ class SerializerTest < ActiveModel::TestCase
serializer = polymorphic_serializer.new(blog, user)
assert_equal({
:writer_type => 'PolymorphicUser',
:writer => {
:writer_type => 'PolymorphicUser',
:first_name => "Jose",
:last_name => "Valim"
}