Commit cfee2fc9e4a07f1aca7df369e3a6f39856193b3f
Exists in
master
and in
4 other branches
Merge pull request #1011 from peikk0/config_projects_limit
Add configurable default for projects_limit
Showing
4 changed files
with
8 additions
and
2 deletions
Show diff stats
app/controllers/admin/users_controller.rb
app/models/user.rb
| ... | ... | @@ -90,7 +90,8 @@ class User < ActiveRecord::Base |
| 90 | 90 | :name => name, |
| 91 | 91 | :email => email, |
| 92 | 92 | :password => password, |
| 93 | - :password_confirmation => password | |
| 93 | + :password_confirmation => password, | |
| 94 | + :projects_limit => GITLAB_OPTS["default_projects_limit"] | |
| 94 | 95 | ) |
| 95 | 96 | end |
| 96 | 97 | end | ... | ... |
config/gitlab.yml.example
config/initializers/00_before_all.rb
| 1 | 1 | GIT_HOST = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git_host"] |
| 2 | 2 | EMAIL_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["email"] |
| 3 | 3 | GIT_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["git"] |
| 4 | +GITLAB_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["gitlab"] | ... | ... |