mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +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]
|
||||
innermost_scope[:namespace].space
|
||||
else
|
||||
endpoint.options[:path][0].split('/')[-1]
|
||||
endpoint.options[:path][0].to_s.split('/')[-1]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue