mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-04-27 14:57:43 +00:00
fix default_root method to support symbol route in grape.
This commit is contained in:
parent
c41e24070e
commit
cb4482d827
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ module Grape
|
||||||
if innermost_scope[:namespace]
|
if innermost_scope[:namespace]
|
||||||
innermost_scope[:namespace].space
|
innermost_scope[:namespace].space
|
||||||
else
|
else
|
||||||
endpoint.options[:path][0].split('/')[-1]
|
endpoint.options[:path][0].to_s.split('/')[-1]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue