active_model_serializers/lib/active_model/serializer
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
..
adapter Fixed fragment_cached? method to check if caching 2016-01-28 13:47:17 -08:00
adapter.rb Enforce Rails-style (line-count-based) block style 2015-09-21 00:00:53 -05:00
array_serializer.rb Test ArraySerializer less rigorously on Minitest 4 2015-11-08 23:12:56 -06:00
association.rb Rubocop: Consistent spacing 2015-09-03 20:51:40 -05:00
associations.rb Replace Field#included? with Field#excluded?. 2016-01-13 06:20:05 +01:00
attribute.rb Factor out ancestor class Field of Attribute and Reflection. 2016-01-13 06:20:04 +01:00
attributes.rb Replace Field#included? with Field#excluded?. 2016-01-13 06:20:05 +01:00
belongs_to_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
caching.rb Extract caching into its own module. 2015-12-28 02:53:49 +01:00
collection_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
collection_serializer.rb Don't pluralize the CollectionSerializer#root for #json_key 2016-01-12 09:32:43 -08:00
configuration.rb Create assert_response_schema test helper 2016-01-15 00:45:56 -06:00
field.rb Replace Field#included? with Field#excluded?. 2016-01-13 06:20:05 +01:00
fieldset.rb Initialize fieldset. 2015-10-25 19:56:43 +01:00
has_many_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
has_one_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
include_tree.rb Add test and bugfix to include an array of string 2015-11-06 17:23:25 +01:00
links.rb Fix comment. 2016-01-13 05:41:32 +01:00
lint.rb Tidy up the tests 2016-01-07 11:21:19 -08:00
reflection.rb Factor out ancestor class Field of Attribute and Reflection. 2016-01-13 06:20:04 +01:00
singular_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
type.rb Extract links and type-related methods to their own module. 2016-01-12 15:05:39 +01:00
version.rb releaseing new version RC4 2016-01-27 10:03:01 -05:00