active_model_serializers/test/fixtures
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
..
active_record.rb Fix warnings 2016-03-25 10:28:13 -05:00
poro.rb When caching, return the object's cache_key up front if it's defined. 2016-03-31 22:29:13 -05:00