Skip to content

Commit

Permalink
Merge pull request ruby-grape#14 from wjp2013/master
Browse files Browse the repository at this point in the history
fix default_root method to support symbol route in grape.
  • Loading branch information
jrhe committed Dec 19, 2013
2 parents c41e240 + cb4482d commit 3a35a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape-active_model_serializers/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def default_root(endpoint)
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
Expand Down

0 comments on commit 3a35a46

Please sign in to comment.