Method: ActiveModel::Serializer::Adapter::JsonApi#fragment_cache

Defined in:
lib/active_model/serializer/adapter/json_api.rb

#fragment_cache(cached_hash, non_cached_hash) ⇒ Object



44
45
46
47
# File 'lib/active_model/serializer/adapter/json_api.rb', line 44

def fragment_cache(cached_hash, non_cached_hash)
  root = false if @options.include?(:include)
  ActiveModel::Serializer::Adapter::JsonApi::FragmentCache.new().fragment_cache(root, cached_hash, non_cached_hash)
end