Module: Pundit::Logger
- Extended by:
- Configuration, ControllerExtensions, Logging
- Defined in:
- lib/pundit_logger.rb,
lib/pundit_logger/logging.rb,
lib/pundit_logger/configuration.rb,
lib/pundit_logger/controller_extensions.rb,
lib/pundit_logger/log_unauthorized_policies.rb,
lib/pundit_logger/log_controller_policy_summary.rb
Defined Under Namespace
Modules: Configuration, ControllerExtensions, LogControllerPolicySummary, LogUnauthorizedPolicies, Logging
Instance Attribute Summary
Attributes included from Configuration
#base_controller, #log_controller_policy_summary, #log_level, #log_scope_instantiation, #log_unauthorized_policies, #logger, #logger_tag
Class Method Summary collapse
-
.pundit_controller_hook_name ⇒ Object
Name of ActiveSupport hook to use when injecting controller loggers.
Methods included from ControllerExtensions
add_controller_policy_summary, add_controller_unauthorized_logger
Methods included from Logging
Methods included from Configuration
configure, log_controller_policy_summary?, log_scope_instantiation?, log_unauthorized_policies?
Class Method Details
.pundit_controller_hook_name ⇒ Object
Returns name of ActiveSupport hook to use when injecting controller loggers.
16 17 18 19 20 21 22 23 |
# File 'lib/pundit_logger.rb', line 16 def self.pundit_controller_hook_name if Rails::VERSION::MAJOR > 5 || (Rails::VERSION::MAJOR == 5 && Rails::VERSION::MINOR > 0) :action_controller_base else :action_controller end end |