mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
addung fragment_cache method to Adapter::Json
This commit is contained in:
parent
5932da64ef
commit
c8fcb60a5d
@ -39,11 +39,12 @@ module ActiveModel
|
|||||||
|
|
||||||
{ root => @result }
|
{ root => @result }
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def fragment_cache(cached_hash, non_cached_hash)
|
def fragment_cache(cached_hash, non_cached_hash)
|
||||||
Json::FragmentCache.new().fragment_cache(cached_hash, non_cached_hash)
|
Json::FragmentCache.new().fragment_cache(cached_hash, non_cached_hash)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user