Merge pull request #14 from wjp2013/master

fix default_root method to support symbol route in grape.
This commit is contained in:
jrhe 2013-12-19 07:32:33 -08:00
commit 3a35a468a5

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