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:
Avon
2016-07-18 00:55:43 +04:30
committed by L. Preston Sego III
parent 9a206a1f5d
commit 3ad2457aaf
4 changed files with 64 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ module ActiveModel
end
def before_setup
@reflections = AssociationsTestSerializer._reflections
@reflections = AssociationsTestSerializer._reflections.values
end
def test_has_one_defines_reflection