mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
9 lines
221 B
Ruby
9 lines
221 B
Ruby
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 |