@@ -12,12 +12,12 @@ def initialize(adapter, serializer, options)
1212
1313 # TODO: Use Serializable::Resource
1414 # TODO: call +constantize+ less
15- # 1. Create a CachedSerializer and NonCachedSerializer from the serializer class.
16- # 2. Serialize the above two with the given adapter.
17- # 3. Pass their serializations to the adapter +::fragment_cache+.
15+ # 1. Create a CachedSerializer and NonCachedSerializer from the serializer class
16+ # 2. Serialize the above two with the given adapter
17+ # 3. Pass their serializations to the adapter +::fragment_cache+
1818 def fetch
1919 klass = serializer . class
20- # It will split the serializer into two, one that will be cached and other wont
20+ # It will split the serializer into two, one that will be cached and one that will not
2121 serializers = fragment_serializer ( serializer . object . class . name , klass )
2222
2323 # Instantiate both serializers
@@ -41,9 +41,9 @@ def fetch
4141
4242 private
4343
44- # Given a serializer class and a hash of its cached and non0cached serializers
45- # 1. Determine cached attributes from serializer class options.
46- # 2. Add cached attributes to cached Serializer.
44+ # Given a serializer class and a hash of its cached and non-cached serializers
45+ # 1. Determine cached attributes from serializer class options
46+ # 2. Add cached attributes to cached Serializer
4747 # 3. Add non-cached attributes to non-cached Serializer
4848 def cached_attributes ( klass , serializers )
4949 attributes = serializer . class . _attributes
@@ -66,8 +66,8 @@ def cached_attributes(klass, serializers)
6666 end
6767
6868 # Given a resource name and its serializer's class
69- # 1. Dyanmically creates a CachedSerializer and NonCachedSerializer
70- # for a given class 'name'.
69+ # 1. Dyanmically creates a CachedSerializer and NonCachedSerializer
70+ # for a given class 'name'
7171 # 2. Call
7272 # CachedSerializer.cache(serializer._cache_options)
7373 # CachedSerializer.fragmented(serializer)
0 commit comments