Add special cases for built-in Rails routes in development

This commit is contained in:
Robert Speicher
2016-03-22 20:26:57 -04:00
parent 57dd206f12
commit 19a2adfa0c
+12
View File
@@ -16,6 +16,18 @@ Rails.application.routes.draw do
end
end
# Make the built-in Rails routes available in development, otherwise they'd
# get swallowed by the `namespace/project` route matcher below.
#
# See https://git.io/va79N
if Rails.env.development?
get '/rails/mailers' => 'rails/mailers#index'
get '/rails/mailers/:path' => 'rails/mailers#preview'
get '/rails/info/properties' => 'rails/info#properties'
get '/rails/info/routes' => 'rails/info#routes'
get '/rails/info' => 'rails/info#index'
end
namespace :ci do
# CI API
Ci::API::API.logger Rails.logger