Skip to content

Commit f96d97d

Browse files
committed
Correct comment
1 parent 455068d commit f96d97d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Breaking changes:
66

7+
Fixes:
8+
9+
- [#1887](https://github.com/rails-api/active_model_serializers/pull/1887) Make the comment reflect what the function does (@johnnymo87)
10+
711
Features:
812

913
- [#1791](https://github.com/rails-api/active_model_serializers/pull/1791) (@bf4, @youroff, @NullVoxPopuli)

lib/active_model_serializers/serializable_resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def serializer_instance
4949

5050
# Get serializer either explicitly :serializer or implicitly from resource
5151
# Remove :serializer key from serializer_opts
52-
# Replace :serializer key with :each_serializer if present
52+
# Remove :each_serializer if present and set as :serializer key
5353
def serializer
5454
@serializer ||=
5555
begin

0 commit comments

Comments
 (0)