active_model_serializers/lib
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
..
action_controller Move SerializableResource to ActiveModelSerializers namespace 2016-03-30 11:33:04 +02:00
active_model When caching, return the object's cache_key up front if it's defined. 2016-03-31 22:29:13 -05:00
active_model_serializers When caching, return the object's cache_key up front if it's defined. 2016-03-31 22:29:13 -05:00
generators/rails Only load generators when needed 2016-01-15 01:52:27 -06:00
grape Move SerializableResource to ActiveModelSerializers namespace 2016-03-30 11:33:04 +02:00
active_model_serializers.rb Move SerializableResource to ActiveModelSerializers namespace 2016-03-30 11:33:04 +02:00