Merge pull request #1887 from johnnymo87/correct-comment

Correct comment
This commit is contained in:
Benjamin Fleischer 2016-08-31 01:04:36 -05:00 committed by GitHub
commit 010243484e
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -49,7 +49,7 @@ module ActiveModelSerializers
# 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