Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not fragment cache if caching is disabled
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.
- Loading branch information