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:
James Lopez 2017-02-07 11:24:56 +00:00
commit a965edb89d

View file

@ -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