mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Bugfix/redefine associations on inherited serializers (#1848)
* replace reflection collection type with hash to prevent duplicated associations in some cases * include tests * Fix robucup offenses * Improve test * Remove usless requirement * improve tests * remove custom_options option from Post and InheritedPost serializer * Improve tests * update changelog * update changelog
This commit is contained in:
committed by
L. Preston Sego III
parent
9a206a1f5d
commit
3ad2457aaf
@@ -11,7 +11,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def before_setup
|
||||
@reflections = AssociationsTestSerializer._reflections
|
||||
@reflections = AssociationsTestSerializer._reflections.values
|
||||
end
|
||||
|
||||
def test_has_one_defines_reflection
|
||||
|
||||
Reference in New Issue
Block a user