active_model_serializers/lib/active_model_serializers/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_api Ensure valid jsonapi when blank relationship (#1930) 2016-09-19 14:10:50 -04:00
attributes.rb Support key transformation for Attributes adapter (#1889) 2016-08-25 15:21:27 -04:00
base.rb Move adapter cache properties to class level (where they belong). 2016-06-04 15:00:51 -05:00
json_api.rb Add include_data :if_sideloaded (#1931) 2016-09-25 12:57:19 -04:00
json.rb Meta no longer handled in Base adapter. 2016-04-21 18:25:17 +02:00
null.rb Restrict serializable_hash to accepted options (#1647) 2016-04-11 13:10:18 -05:00