mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
I noticed that fragment caching does not actually check if caching is enabled as it seemingly should. The way CachedSerializer#fragment_cached? worked previously would return true even in an environment where caching was disabled as defined by `ActiveModelSerializers.config.perform_caching`. Added check for `_cache` like in the `cached?` method before checking whether `_cache_only` or `_cache_except` is set. There were no existing tests for any of these methods but it's a pretty trivial change. |
||
|---|---|---|
| .. | ||
| json | ||
| json_api | ||
| attributes.rb | ||
| base.rb | ||
| cached_serializer.rb | ||
| fragment_cache.rb | ||
| json_api.rb | ||
| json.rb | ||
| null.rb | ||