summaryrefslogtreecommitdiff
path: root/app/controllers/registrations_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 00:22:50 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-08 00:22:50 -0800
commit8589b4e137f50293952923bb07e2814257d7784d (patch)
tree45e96152606d36a906f5a8d54ad1c245987c3b9e /app/controllers/registrations_controller.rb
parentd02a22ba21f91d2aa4f9cf716dc3aefcf7e7495e (diff)
downloadgitlab-ce-8589b4e137f50293952923bb07e2814257d7784d.tar.gz
Init ApplicationSettings resource with defaults from config file
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r--app/controllers/registrations_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index 6d3214b70a8..7c15eab4345 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -26,7 +26,9 @@ class RegistrationsController < Devise::RegistrationsController
private
def signup_enabled?
- redirect_to new_user_session_path unless Gitlab.config.gitlab.signup_enabled
+ unless ApplicationSetting.current.signup_enabled
+ redirect_to new_user_session_path
+ end
end
def sign_up_params