active_model_serializers/test
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 Properly deserialize dasherized keys 2016-03-29 22:46:01 +02:00
active_model_serializers Move SerializableResource to ActiveModelSerializers namespace 2016-03-30 11:33:04 +02:00
adapter Prefer explicitly yielding the serializer, per groyoh 2016-03-30 14:01:28 -05:00
benchmark Add rails_version to output 2016-03-13 14:29:29 -05:00
fixtures When caching, return the object's cache_key up front if it's defined. 2016-03-31 22:29:13 -05:00
generators Only load generators when needed 2016-01-15 01:52:27 -06:00
include_tree Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
serializers The cache store needs to be the actually store, not e.g. :memory_store 2016-03-30 09:52:29 -05:00
support Add CHANGELOG [ci skip] 2016-03-30 10:00:24 -05:00
active_record_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
adapter_test.rb Moved the adapter and adapter folder to active_model_serializers folder and changed the module namespace 2016-02-23 21:49:58 -06:00
array_serializer_test.rb Add a deprecation DSL 2016-03-07 01:07:06 -06:00
cache_test.rb When caching, return the object's cache_key up front if it's defined. 2016-03-31 22:29:13 -05:00
collection_serializer_test.rb Include Serializer._type in collection serializer json_key cascade 2016-03-27 10:55:31 -05:00
grape_test.rb Rubocop autocorrect 2016-03-08 22:32:34 +01:00
lint_test.rb RFC: Json Api Errors (WIP) 2016-03-06 12:03:14 -06:00
logger_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
poro_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
serializable_resource_test.rb Move SerializableResource to ActiveModelSerializers namespace 2016-03-30 11:33:04 +02:00
test_helper.rb Clean up test app 2016-03-30 00:23:04 -05:00