app/controllers/users/registrations_controller.rb
# Change this to be any actions you want to protect.
Change this to be any actions you want to protect.
Change this to be any actions you want to protect .
def new
    if Rails.configuration.x.firestarter_settings['spark']
      flash[:alert] = t('sign_up_spark')
      redirect_to :new_user_session
      return
    end
    super
  end
def new if Rails . configuration . x . firestarter_settings [ 'spark' ] flash [ :alert ] = t ( 'sign_up_spark' ) redirect_to :new_user_session return end super end
Change this to be any actions you want to protect.
Change this to be any actions you want to protect .