Correct comment

This commit is contained in:
johnnymo87 2016-08-19 12:46:03 +00:00
parent 455068d455
commit f96d97d3e9
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