app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def require_active_account!
      return if devise_controller? || peek_controller?
      raise Apartment::TenantNotFound, "No tenant for #{request.host}" unless current_account.persisted?
    end
def require_active_account! return if devise_controller? || peek_controller? raise Apartment :: TenantNotFound , "No tenant for #{request.host}" unless current_account . persisted? end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .