Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
19a2adfa
Commit
19a2adfa
authored
Mar 22, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add special cases for built-in Rails routes in development
parent
57dd206f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
config/routes.rb
config/routes.rb
+12
-0
No files found.
config/routes.rb
View file @
19a2adfa
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment