BigW Consortium Gitlab

Commit a965edb8 by James Lopez

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

Update Grape routes to work with current version of Grape See merge request !8992
parents 55d55e38 a130dc6f
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment