Sha256: 3cfb6ecef97e1fcf121e46780d197f1a2f15a81a58900e53f38d095bd9b9be81
Contents?: true
Size: 261 Bytes
Versions: 2
Compression:
Stored size: 261 Bytes
Contents
unless defined?(Rails) desc "display all routes" task :routes do grape_apis = ObjectSpace.each_object(Class).select { |klass| klass < Grape::API } grape_apis.each do |api| api.routes.each do |r| puts "#{r}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
napa-0.1.18 | lib/tasks/routes.rake |
napa-0.1.17 | lib/tasks/routes.rake |