mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Move polymorphic type into the serializable_hash
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user