crowdAI/crowdai

View on GitHub
app/controllers/registrations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RegistrationsController < Devise::RegistrationsController

  before_action :check_new_registration_allowed?, only: [:new, :create]

  protected

  def check_new_registration_allowed?
    redirect_to root_path, :flash => { :error => "Registrations are now closed" }
  end

end