active_model_serializers/lib
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 re: RuboCop: Bulk minor style corrections 2016-06-20 22:12:16 +01:00
active_model Add include_data :if_sideloaded (#1931) 2016-09-25 12:57:19 -04:00
active_model_serializers Add include_data :if_sideloaded (#1931) 2016-09-25 12:57:19 -04:00
generators/rails Ensure generator picks up ApplicationSerializer 2016-09-05 19:00:25 -04:00
grape re: RuboCop - Use nested module/class definition instead of compact style. 2016-06-20 22:15:20 +01:00
active_model_serializers.rb Extract IncludeTree. (#1685) 2016-05-28 10:07:11 -04:00