removing unnecessary root parameter on fragment cache

This commit is contained in:
João Moura
2015-06-13 14:54:51 -03:00
parent 7fa123bd6b
commit 37114e9d5b
3 changed files with 3 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ module ActiveModel
yield
end
elsif is_fragment_cached?
FragmentCache.new(self, @cached_serializer, @options, @root).fetch
FragmentCache.new(self, @cached_serializer, @options).fetch
else
yield
end