Skip to content
Snippets Groups Projects
Commit a965edb8 authored by James Lopez's avatar James Lopez
Browse files

Merge branch 'fix/grape-routes' into 'master'

Update Grape routes to work with current version of Grape

See merge request !8992
parents 55d55e38 a130dc6f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment