Skip to content

Commit 4974295

Browse files
committed
Merge branch 'CheckMateIO-bugfix/fix-fragment-cached-check'
Remaining issues: - Changelog - Test
2 parents eedf0b6 + 3a092c9 commit 4974295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model/serializer/adapter/cached_serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def cached?
2424
end
2525

2626
def fragment_cached?
27-
@klass._cache_only && !@klass._cache_except || !@klass._cache_only && @klass._cache_except
27+
@klass._cache && (@klass._cache_only && !@klass._cache_except || !@klass._cache_only && @klass._cache_except)
2828
end
2929

3030
def cache_key

0 commit comments

Comments
 (0)