registrations_controller.rb 221 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 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