active_model_serializers/test
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
..
action_controller Add tests for fields option demonstrating usage on both attributes and relationships (#1839) 2016-08-17 16:12:12 -05:00
active_model_serializers Support key transformation for Attributes adapter (#1889) 2016-08-25 15:21:27 -04:00
adapter Add include_data :if_sideloaded (#1931) 2016-09-25 12:57:19 -04:00
benchmark added active record benchmark (#1919) 2016-09-24 16:39:29 -04:00
fixtures remove dynamic class creation where not needed (#1850) 2016-07-18 14:11:09 -05:00
generators Ensure generator picks up ApplicationSerializer 2016-09-05 19:00:25 -04:00
serializers Refactor Association into Field like everything else (#1897) 2016-08-31 09:35:41 -04:00
support Correct typos 2016-08-16 18:18:58 -05:00
active_record_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
adapter_test.rb re: RuboCop - get rid of redundant curly braces around a hash parameter 2016-06-20 22:14:39 +01:00
array_serializer_test.rb Drop support for Rails 4.0 and Ruby 2.0.0 2016-04-04 11:41:35 -06:00
cache_test.rb Use ActiveSupport::Cache.expand_cache_key for cache key expansions (#1878) 2016-08-13 16:59:36 -05:00
collection_serializer_test.rb remove dynamic class creation where not needed (#1850) 2016-07-18 14:11:09 -05:00
grape_test.rb re: RuboCop - Use nested module/class definition instead of compact style. 2016-06-20 22:15:20 +01:00
lint_test.rb re: RuboCop: Bulk minor style corrections 2016-06-20 22:12:16 +01:00
logger_test.rb re: RuboCop - Use nested module/class definition instead of compact style. 2016-06-20 22:15:20 +01:00
poro_test.rb Favor ActiveSupport::TestCase over Minitest::Test 2015-12-22 10:35:51 -06:00
serializable_resource_test.rb re: RuboCop - get rid of redundant curly braces around a hash parameter 2016-06-20 22:14:39 +01:00
test_helper.rb Add helpful testing gems 2016-09-05 18:27:58 -04:00