diff options
author | Phil Hughes <me@iamphill.com> | 2016-05-25 08:52:13 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-25 09:44:33 +0100 |
commit | 497a28c59f042fcce36d1d0682cf225c9743369f (patch) | |
tree | 1c3f07f281d00f9c2b64a790599743cc6055a0f9 /app/models | |
parent | f2fb574d0421eb3b24b640766fa2265fafe20130 (diff) | |
download | gitlab-ce-497a28c59f042fcce36d1d0682cf225c9743369f.tar.gz |
Fixed project model testszero-project-creation-error-message
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 2876150cd6e..f3a56b86d5a 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -434,9 +434,9 @@ class Project < ActiveRecord::Base projects_limit = creator.projects_limit if projects_limit == 0 - self.errors.add(:base, "Personal project creation is not allowed. Please contact your administrator with questions") + self.errors.add(:limit_reached, "Personal project creation is not allowed. Please contact your administrator with questions") else - self.errors.add(:base, "Your project limit is #{projects_limit} projects! Please contact your administrator to increase it") + self.errors.add(:limit_reached, "Your project limit is #{projects_limit} projects! Please contact your administrator to increase it") end end rescue |