mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix deserialization of polymorphic relationships (#2200)
* Classify the relationship type for polymorphic associations
This commit is contained in:
committed by
Benjamin Fleischer
parent
715a702f55
commit
4d7c2457d7
@@ -125,7 +125,7 @@ module ActiveModelSerializers
|
||||
src: 'http://example.com/images/productivity.png',
|
||||
author_id: nil,
|
||||
photographer_id: '9',
|
||||
photographer_type: 'people',
|
||||
photographer_type: 'Person',
|
||||
comment_ids: %w(1 2)
|
||||
}
|
||||
assert_equal(expected, parsed_hash)
|
||||
|
||||
Reference in New Issue
Block a user