rails-api/active_model_serializers — pull request #627 by JordanFaust (2014-09-01 22:23:05+00:00)
Title: Add serialization_scope and default_serializer_options

Added in serialization_scope and default_serializer_options. Right now this is just a like for like addition from 0.8 but this should open up the ability for adapter to modify this.

For example the JsonApi adapter will probably want the default_serializer_options to include the values of the page, sort, include and fields parameters. The adapter could define this list and we would use the currently configured adapter to define what the default serializer_options are.

Thoughts?