Merge branch 'fix/grape-routes' into 'master'
Update Grape routes to work with current version of Grape See merge request !8992
This commit is contained in:
commit
a965edb89d
1 changed files with 5 additions and 1 deletions
|
@ -2,7 +2,11 @@ namespace :grape do
|
|||
desc 'Print compiled grape routes'
|
||||
task routes: :environment do
|
||||
API::API.routes.each do |route|
|
||||
puts route
|
||||
puts "#{route.options[:method]} #{route.path} - #{route_description(route.options)}"
|
||||
end
|
||||
end
|
||||
|
||||
def route_description(options)
|
||||
options[:settings][:description][:description] if options[:settings][:description]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue