active_model_serializers/lib/active_model
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
..
serializer Add include_data :if_sideloaded (#1931) 2016-09-25 12:57:19 -04:00
serializable_resource.rb Move SerializableResource to ActiveModelSerializers namespace 2016-03-30 11:33:04 +02:00
serializer.rb Organize Serializer concerns into concerns/ 2016-08-31 00:59:48 -05:00