active_model_serializers/lib/active_model/serializer/adapter
Brian McManus 3a092c9b4b Fixed fragment_cached? method to check if caching
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.
2016-01-28 13:47:17 -08:00
..
json Introduce Adapter::Base 2015-09-20 12:26:04 -05:00
json_api Add support for dynamic string-links in JsonApi adapter. 2016-01-15 14:36:42 +01:00
attributes.rb Compute only requested attributes. 2015-10-31 19:20:53 +01:00
base.rb Move meta/meta_key handling inside adapter. 2015-10-05 19:06:50 +02:00
cached_serializer.rb Fixed fragment_cached? method to check if caching 2016-01-28 13:47:17 -08:00
fragment_cache.rb Correct minor typos 2015-10-22 10:31:21 -05:00
json_api.rb Add support for dynamic string-links in JsonApi adapter. 2016-01-15 14:36:42 +01:00
json.rb Fix options passing in Json and Attributes adapters. 2015-09-21 07:13:17 +02:00
null.rb Introduce Adapter::Base 2015-09-20 12:26:04 -05:00