module ActiveModel::Serializer::Caching
def fetch_attributes(fields, cached_attributes, adapter_instance)
def fetch_attributes(fields, cached_attributes, adapter_instance) key = cache_key(adapter_instance) cached_attributes.fetch(key) do fetch(adapter_instance, serializer_class._cache_options, key) do attributes(fields, true) end end end