From f96d97d3e99444a44203e8819356b14549d52cc6 Mon Sep 17 00:00:00 2001 From: johnnymo87 Date: Fri, 19 Aug 2016 12:46:03 +0000 Subject: [PATCH] Correct comment --- CHANGELOG.md | 4 ++++ lib/active_model_serializers/serializable_resource.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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