fix default_root method to support symbol route in grape.

This commit is contained in:
Victor Wang 2013-12-18 16:46:38 +08:00
parent c41e24070e
commit cb4482d827

View file

@ -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