BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
04a908f6
Commit
04a908f6
authored
Dec 12, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #190 from mutewinter/dot_project_names
Allow dots in project names
parents
37a0a25f
a3b6a3ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
project.rb
app/models/project.rb
+4
-4
routes.rb
config/routes.rb
+3
-3
No files found.
app/models/project.rb
View file @
04a908f6
...
...
@@ -25,8 +25,8 @@ class Project < ActiveRecord::Base
validates
:path
,
:uniqueness
=>
true
,
:presence
=>
true
,
:format
=>
{
:with
=>
/^[a-zA-Z0-9_\-]*$/
,
:message
=>
"only letters, digits & '_' '-' allowed"
},
:format
=>
{
:with
=>
/^[a-zA-Z0-9_\-
\.
]*$/
,
:message
=>
"only letters, digits & '_' '-'
'.'
allowed"
},
:length
=>
{
:within
=>
0
..
255
}
validates
:description
,
...
...
@@ -35,8 +35,8 @@ class Project < ActiveRecord::Base
validates
:code
,
:presence
=>
true
,
:uniqueness
=>
true
,
:format
=>
{
:with
=>
/^[a-zA-Z0-9_\-]*$/
,
:message
=>
"only letters, digits & '_' '-' allowed"
},
:format
=>
{
:with
=>
/^[a-zA-Z0-9_\-
\.
]*$/
,
:message
=>
"only letters, digits & '_' '-'
'.'
allowed"
},
:length
=>
{
:within
=>
3
..
255
}
validates
:owner
,
...
...
config/routes.rb
View file @
04a908f6
...
...
@@ -6,7 +6,7 @@ Gitlab::Application.routes.draw do
namespace
:admin
do
resources
:users
resources
:projects
resources
:projects
,
:constraints
=>
{
:id
=>
/[^\/]+/
}
resources
:team_members
get
'emails'
,
:to
=>
'mailer#preview'
get
'mailer/preview_note'
...
...
@@ -28,12 +28,12 @@ Gitlab::Application.routes.draw do
#get "profile/:id", :to => "profile#show"
resources
:projects
,
:only
=>
[
:new
,
:create
,
:index
]
resources
:projects
,
:
constraints
=>
{
:id
=>
/[^\/]+/
},
:
only
=>
[
:new
,
:create
,
:index
]
resources
:keys
devise_for
:users
resources
:projects
,
:except
=>
[
:new
,
:create
,
:index
],
:path
=>
"/"
do
resources
:projects
,
:
constraints
=>
{
:id
=>
/[^\/]+/
},
:
except
=>
[
:new
,
:create
,
:index
],
:path
=>
"/"
do
member
do
get
"team"
get
"wall"
...
...
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