Skip to content

Commit c8fcb60

Browse files
committed
addung fragment_cache method to Adapter::Json
1 parent 5932da6 commit c8fcb60

File tree

1 file changed

+4
-3
lines changed
  • lib/active_model/serializer/adapter

1 file changed

+4
-3
lines changed

lib/active_model/serializer/adapter/json.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ def serializable_hash(options = {})
3939

4040
{ root => @result }
4141
end
42-
end
4342

44-
def fragment_cache(cached_hash, non_cached_hash)
45-
Json::FragmentCache.new().fragment_cache(cached_hash, non_cached_hash)
43+
def fragment_cache(cached_hash, non_cached_hash)
44+
Json::FragmentCache.new().fragment_cache(cached_hash, non_cached_hash)
45+
end
46+
4647
end
4748
end
4849
end

0 commit comments

Comments
 (0)