module Pundit::Logger
Public Class Methods
pundit_controller_hook_name()
click to toggle source
@return name of ActiveSupport hook to use when injecting
controller loggers
# 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