Commit 421b11158d8420b3fe337b63d5686c24b5644c94
1 parent
e7570250
Exists in
master
and in
4 other branches
error fields highlight
Showing
2 changed files
with
10 additions
and
2 deletions
Show diff stats
app/assets/stylesheets/projects.css.scss
app/models/project.rb
... | ... | @@ -35,7 +35,6 @@ class Project < ActiveRecord::Base |
35 | 35 | :presence => true |
36 | 36 | |
37 | 37 | validate :check_limit |
38 | - | |
39 | 38 | validate :repo_name |
40 | 39 | |
41 | 40 | after_destroy :destroy_gitosis_project |
... | ... | @@ -172,7 +171,7 @@ class Project < ActiveRecord::Base |
172 | 171 | |
173 | 172 | def repo_name |
174 | 173 | if path == "gitosis-admin" |
175 | - errors.add(:path, "Project path like 'gitosis-admin' is not allowed") | |
174 | + errors.add(:path, " like 'gitosis-admin' is not allowed") | |
176 | 175 | end |
177 | 176 | end |
178 | 177 | ... | ... |