diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2012-11-06 17:30:48 +0400 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2013-01-18 14:57:31 +0400 |
commit | 296cdd591f7f01ffdbe18cd6a839bbd0e624dfba (patch) | |
tree | fd910106cf092da00a7fbddfe4d6e19b1f9a00eb /app/controllers/registrations_controller.rb | |
parent | b07e1b3aedf87fdf3ec7a6855cec8194b0a30a59 (diff) |
Add optional signup.
Diffstat (limited to 'app/controllers/registrations_controller.rb')
-rw-r--r-- | app/controllers/registrations_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb new file mode 100644 index 00000000000..cbac7613e59 --- /dev/null +++ b/app/controllers/registrations_controller.rb @@ -0,0 +1,9 @@ +class RegistrationsController < Devise::RegistrationsController + before_filter :signup_enabled? + + private + + def signup_enabled? + redirect_to new_user_session_path unless Gitlab.config.gitlab.signup_enabled + end +end
\ No newline at end of file |