We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eedf0b6 + 3a092c9 commit 4974295Copy full SHA for 4974295
lib/active_model/serializer/adapter/cached_serializer.rb
@@ -24,7 +24,7 @@ def cached?
24
end
25
26
def fragment_cached?
27
- @klass._cache_only && !@klass._cache_except || !@klass._cache_only && @klass._cache_except
+ @klass._cache && (@klass._cache_only && !@klass._cache_except || !@klass._cache_only && @klass._cache_except)
28
29
30
def cache_key
0 commit comments