Sprankelprachtig aan/afmeldsysteem

application_controller.rb 345B

1234567891011121314
  1. class ApplicationController < ActionController::Base
  2. protect_from_forgery with: :exception
  3. rescue_from ActionController::InvalidAuthenticityToken, with: :invalid_auth_token
  4. include AuthenticationHelper
  5. include ApplicationHelper
  6. private
  7. def invalid_auth_token
  8. render text: I18n.t(:invalid_csrf), status: :bad_request
  9. end
  10. end