mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +00:00
Read default serializer options from the controller
This commit is contained in:
parent
85b92a4856
commit
704838ef5f
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ module Grape
|
|||
end
|
||||
|
||||
def build_options_from_endpoint(endpoint)
|
||||
endpoint.namespace_options.merge(endpoint.route_options)
|
||||
[endpoint.default_serializer_options || {}, endpoint.namespace_options, endpoint.route_options].reduce(:merge)
|
||||
end
|
||||
|
||||
# array root is the innermost namespace name ('space') if there is one,
|
||||
|
|
|
|||
Loading…
Reference in a new issue