Commit 369df86e710bd876b3d688472cdce987e27640a3

Authored by randx
1 parent 7f207d4a

Remove GITLAB_OPTS, fixed ldap user creation

app/models/user.rb
... ... @@ -91,7 +91,7 @@ class User < ActiveRecord::Base
91 91 :email => email,
92 92 :password => password,
93 93 :password_confirmation => password,
94   - :projects_limit => GITLAB_OPTS["default_projects_limit"]
  94 + :projects_limit => Gitlab.config.default_projects_limit
95 95 )
96 96 end
97 97 end
... ...
config/initializers/0_before_all.rb
... ... @@ -1 +0,0 @@
1   -GITLAB_OPTS = YAML.load_file("#{Rails.root}/config/gitlab.yml")["gitlab"]