active_model_serializers/lib/active_model/serializer
kevintyll ab6bd600e3 When caching, return the object's cache_key up front if it's defined.
This will prevent objects PORO objects that don't have updated_at defined, from throwing an error.

Not as big a deal now that PORO objects can inherit ActiveModelSerializers::Model, but still necessary if it's not inherited for whatever reason.

Add the Adapter type to the cache key.

This prevents incorrect results when the same object is serialized with different adapters.

BF:

Cherry-pick of
040a97b9e9
which was a squash of
f89ed71058

from pr 1346
2016-03-31 22:29:13 -05:00
..
adapter Add a deprecation DSL 2016-03-07 01:07:06 -06:00
adapter.rb Move SerializableResource to ActiveModelSerializers namespace 2016-03-30 11:33:04 +02:00
array_serializer.rb Update deprecation warning with correct namespace 2016-03-30 15:51:13 +02:00
association.rb Add support for relationship-level links and meta. 2016-01-21 02:36:54 +01: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 Move serializer caching from adapter 2016-03-13 19:57:59 -05:00
belongs_to_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
caching.rb When caching, return the object's cache_key up front if it's defined. 2016-03-31 22:29:13 -05:00
collection_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
collection_serializer.rb Include Serializer._type in collection serializer json_key cascade 2016-03-27 10:55:31 -05:00
configuration.rb Provide key case translation 2016-03-15 12:21:10 -06:00
error_serializer.rb Collapse JSON API success/failure documents in one adapter 2016-03-06 12:03:17 -06:00
errors_serializer.rb Collapse JSON API success/failure documents in one adapter 2016-03-06 12:03:17 -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 Provide Rails url_helpers via SerializationContext 2016-03-07 10:40:34 -07:00
lint.rb RFC: Json Api Errors (WIP) 2016-03-06 12:03:14 -06:00
meta.rb Clean up meta handling. 2016-01-20 01:00:14 +01:00
null.rb Handle render.ams with nil serializer or adapter 2016-03-28 21:33:23 -05:00
reflection.rb Prefer explicitly yielding the serializer, per groyoh 2016-03-30 14:01:28 -05:00
singular_reflection.rb Associations refactoring 2015-07-30 11:20:29 +03:00
type.rb Add symbol support for ActiveModel::Serializer.type method 2016-02-19 17:05:13 +01:00
version.rb Rubocop autocorrect 2016-03-08 22:32:34 +01:00