Commit 014db24a authored by James Lopez's avatar James Lopez

update Grape routes to work with current version of Grape

parent 1bbc99f1
......@@ -2,7 +2,13 @@ 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)
if options[:settings][:description]
options[:settings][:description][:description]
end || ''
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