Module: Pundit::Logger::ControllerExtensions

Included in:
Pundit::Logger
Defined in:
lib/pundit_logger/controller_extensions.rb

Instance Method Summary collapse

Instance Method Details

#add_controller_policy_summaryObject



10
11
12
# File 'lib/pundit_logger/controller_extensions.rb', line 10

def add_controller_policy_summary
  base_controller.include LogControllerPolicySummary
end

#add_controller_unauthorized_loggerObject



6
7
8
# File 'lib/pundit_logger/controller_extensions.rb', line 6

def add_controller_unauthorized_logger
  base_controller.include LogUnauthorizedPolicies
end