Skip to content

Commit 9648a9c

Browse files
committed
Edits per beauby [ci skip]
1 parent 60df36b commit 9648a9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/active_model/serializer.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class Serializer
3636
class_attribute :_attributes_keys # @api private : maps attribute value to explict key name, @see Serializer#attribute
3737
self._attributes_keys ||= {}
3838
serializer.class_attribute :_cache # @api private : the cache object
39-
serializer.class_attribute :_fragmented # @api private :
39+
serializer.class_attribute :_fragmented # @api private : @see ::fragmented
4040
serializer.class_attribute :_cache_key # @api private : when present, is first item in cache_key
4141
serializer.class_attribute :_cache_only # @api private : when fragment caching, whitelists cached_attributes. Cannot combine with except
4242
serializer.class_attribute :_cache_except # @api private : when fragment caching, blacklists cached_attributes. Cannot combine with only
43-
serializer.class_attribute :_cache_options # @api private : Used by CachedSerializer, passed to _cache.fetch
43+
serializer.class_attribute :_cache_options # @api private : used by CachedSerializer, passed to _cache.fetch
4444
# _cache_options include:
4545
# expires_in
4646
# compress
@@ -138,11 +138,11 @@ def self.cache(options = {})
138138

139139
# @param resource [ActiveRecord::Base, ActiveModelSerializers::Model]
140140
# @return [ActiveModel::Serializer]
141-
# Preferentially retuns
141+
# Preferentially returns
142142
# 1. resource.serializer
143-
# 2. ArraySerializer for a collection
143+
# 2. ArraySerializer when resource is a collection
144144
# 3. options[:serializer]
145-
# 4. lookup serializer by class (i.e. resource is a class)
145+
# 4. lookup serializer when resource is a Class
146146
def self.serializer_for(resource, options = {})
147147
if resource.respond_to?(:serializer_class)
148148
resource.serializer_class

0 commit comments

Comments
 (0)