| ... | @@ -66,7 +66,7 @@ class Project < ActiveRecord::Base |
... | @@ -66,7 +66,7 @@ class Project < ActiveRecord::Base |
|
|
project
|
|
project
|
|
|
rescue => ex
|
|
rescue => ex
|
|
|
project.error_code = :db
|
|
project.error_code = :db
|
|
|
project.errors.add(:base, "Cant save project. Please try again later")
|
|
project.errors.add(:base, "Can't save project. Please try again later")
|
|
|
project
|
|
project
|
|
|
end
|
|
end
|
|
|
|
|
|
| ... | @@ -112,7 +112,7 @@ class Project < ActiveRecord::Base |
... | @@ -112,7 +112,7 @@ class Project < ActiveRecord::Base |
|
|
errors[:base] << ("Your own projects limit is #{owner.projects_limit}! Please contact administrator to increase it")
|
|
errors[:base] << ("Your own projects limit is #{owner.projects_limit}! Please contact administrator to increase it")
|
|
|
end
|
|
end
|
|
|
rescue
|
|
rescue
|
|
|
errors[:base] << ("Cant check your ability to create project")
|
|
errors[:base] << ("Can't check your ability to create project")
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
def repo_name
|
|
def repo_name
|
| ... | |
... | |
| ... | | ... | |