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
@@ -45,7 +45,7 @@ module ActionController
|
||||
response = JSON.parse(@response.body)
|
||||
expected = {
|
||||
'restriction_for_id' => '67',
|
||||
'restriction_for_type' => 'discounts',
|
||||
'restriction_for_type' => 'Discount',
|
||||
'restricted_to_id' => nil,
|
||||
'restricted_to_type' => nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user