diff --git a/CHANGELOG.md b/CHANGELOG.md index 751da6933..beac6369f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Breaking changes: +Fixes: + +- [#1887](https://github.com/rails-api/active_model_serializers/pull/1887) Make the comment reflect what the function does (@johnnymo87) + Features: - [#1791](https://github.com/rails-api/active_model_serializers/pull/1791) (@bf4, @youroff, @NullVoxPopuli) diff --git a/lib/active_model_serializers/serializable_resource.rb b/lib/active_model_serializers/serializable_resource.rb index 10f9d9aba..73a033d1b 100644 --- a/lib/active_model_serializers/serializable_resource.rb +++ b/lib/active_model_serializers/serializable_resource.rb @@ -49,7 +49,7 @@ def serializer_instance # Get serializer either explicitly :serializer or implicitly from resource # Remove :serializer key from serializer_opts - # Replace :serializer key with :each_serializer if present + # Remove :each_serializer if present and set as :serializer key def serializer @serializer ||= begin