Sha256: 53039e8433bf514a365429e55604121b82f523ddd567adf0ae2e710434372f12

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

require_relative 'log_unauthorized_policies'
require_relative 'log_controller_policy_summary'

module Pundit::Logger
  module ControllerExtensions
    def add_controller_unauthorized_logger
      base_controller.include LogUnauthorizedPolicies
    end

    def add_controller_policy_summary
      base_controller.include LogControllerPolicySummary
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pundit_logger-0.1.1 lib/pundit_logger/controller_extensions.rb
pundit_logger-0.1.0 lib/pundit_logger/controller_extensions.rb