Module: Pundit::Logger::LogUnauthorizedPolicies

Extended by:
ActiveSupport::Concern
Defined in:
lib/pundit_logger/log_unauthorized_policies.rb

Overview

If Pundit authorization fails, the policy name and associated information is logged to the configured logger.

Intended for mixing into Rails controllers

Functionality controlled by Pundit::Logger.log_unauthorized_policies; disable by setting that to false.