summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb4
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