active_model_serializers/lib
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
..
action_controller Add config.serializer_lookup_enabled that defaults true 2015-11-30 00:20:58 -06:00
active_model Fixed fragment_cached? method to check if caching 2016-01-28 13:47:17 -08:00
active_model_serializers ensure that generators get configured correctly 2016-01-25 09:01:25 -08:00
generators/rails Only load generators when needed 2016-01-15 01:52:27 -06:00
grape Grape formatter feature requested in #1258 2015-12-10 10:06:40 +00:00
active_model_serializers.rb Only call railtie when Rails is defined; assume controller loaded 2016-01-15 01:54:07 -06:00