active_model_serializers/test/adapter
Lee Richmond 2145540795 Add include_data :if_sideloaded (#1931)
For JSONAPI, `include_data` currently means, "should we populate the
'data'" key for this relationship. Current options are true/false.

This adds the `:if_sideloaded` option. This means "only
populate the 'data' key when we are sideloading this relationship." This
is because 'data' is often only relevant to sideloading, and causes a
database hit.

Addresses https://github.com/rails-api/active_model_serializers/issues/1555
2016-09-25 12:57:19 -04:00
..
json remove dynamic class creation where not needed (#1850) 2016-07-18 14:11:09 -05:00
json_api Add include_data :if_sideloaded (#1931) 2016-09-25 12:57:19 -04:00
attributes_test.rb Support key transformation for Attributes adapter (#1889) 2016-08-25 15:21:27 -04:00
deprecation_test.rb Clean up test deprecation warnings 2016-03-06 23:35:22 -06:00
json_test.rb re: RuboCop - hash indention corrections 2016-06-20 22:13:21 +01:00
null_test.rb re: RuboCop - get rid of redundant curly braces around a hash parameter 2016-06-20 22:14:39 +01:00
polymorphic_test.rb re: RuboCop - hash indention corrections 2016-06-20 22:13:21 +01:00