Remove GITLAB_OPTS, fixed ldap user creation

This commit is contained in:
randx 2012-07-05 21:29:37 +03:00
parent 7f207d4a87
commit 369df86e71
2 changed files with 1 additions and 2 deletions

View file

@ -91,7 +91,7 @@ class User < ActiveRecord::Base
:email => email,
:password => password,
:password_confirmation => password,
:projects_limit => GITLAB_OPTS["default_projects_limit"]
:projects_limit => Gitlab.config.default_projects_limit
)
end
end

View file

@ -1 +0,0 @@
GITLAB_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["gitlab"]