mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Correct comment
This commit is contained in:
parent
455068d455
commit
f96d97d3e9
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user