active_model_serializers/test/serializers
Joao Moura 8a432ad2b3 Adding cache support to version 0.10.0
It's a new implementation of cache based on ActiveSupport::Cache.
The implementation abstracts the cache in Adapter class on a
private method called cached_object, this method is intended
to be used on Adapters inside serializable_hash method in order
to cache each instance of the object that will be returned by
the serializer.

Some of its features are:
- A different syntax. (no longer need the cache_key method).
- An options argument that have the same arguments of ActiveSupport::Cache::Store, plus a key option that will be the prefix of the object cache on a pattern "#{key}-#{object.id}".
- It cache the objects individually and not the whole Serializer return, re-using it in different requests (as a show and a index method for example.)
2015-02-02 14:53:34 -02:00
..
adapter_for_test.rb Remove 'Adapter' suffix from adapters since they are in Adapter:: namespace 2014-08-29 11:40:56 +04:00
associations_test.rb Support overriding association methods 2015-01-29 16:52:18 -02:00
attribute_test.rb Rename attribute with :key (0.8.x compatibility) 2014-11-13 08:03:22 -05:00
attributes_test.rb implement sparse fieldsets http://jsonapi.org/format/#fetching-sparse-fieldsets 2014-10-26 13:04:14 -07:00
cache_test.rb Adding cache support to version 0.10.0 2015-02-02 14:53:34 -02:00
configuration_test.rb Allow overriding the adapter with render option 2014-11-13 10:23:19 -05:00
fieldset_test.rb remove serializer dependency from fieldset 2014-10-27 15:24:19 -07:00
generators_test.rb Move serializer tests into their own directory. 2014-07-09 16:19:02 -04:00
meta_test.rb Adds support for meta attribute 2015-01-05 02:56:33 -02:00
serializer_for_test.rb Check superclasses for Serializers 2014-10-13 17:39:54 -06:00
urls_test.rb Add DSL for urls 2014-09-01 13:44:22 -05:00