Sha256: 748170b83905ef44cc14f0fa963f8d55755bc0d552cf5cbfb096b6589278f68f

Contents?: true

Size: 313 Bytes

Versions: 23

Compression:

Stored size: 313 Bytes

Contents

require "pundit"

module Plutonium
  module Pundit
    class Context < ::Pundit::Context
      def initialize(*, package:, **)
        super(*, **)
        @package = package
      end

      private

      def policy_finder(record)
        PolicyFinder.new(record, package: @package)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
plutonium-0.14.1 lib/plutonium/pundit/context.rb
plutonium-0.14.0 lib/plutonium/pundit/context.rb
plutonium-0.13.3 lib/plutonium/pundit/context.rb
plutonium-0.13.2 lib/plutonium/pundit/context.rb
plutonium-0.13.1 lib/plutonium/pundit/context.rb
plutonium-0.13.0 lib/plutonium/pundit/context.rb
plutonium-0.12.14 lib/plutonium/pundit/context.rb
plutonium-0.12.13 lib/plutonium/pundit/context.rb
plutonium-0.12.12 lib/plutonium/pundit/context.rb
plutonium-0.12.11 lib/plutonium/pundit/context.rb
plutonium-0.12.10 lib/plutonium/pundit/context.rb
plutonium-0.12.9 lib/plutonium/pundit/context.rb
plutonium-0.12.8 lib/plutonium/pundit/context.rb
plutonium-0.12.7 lib/plutonium/pundit/context.rb
plutonium-0.12.5 lib/plutonium/pundit/context.rb
plutonium-0.12.4 lib/plutonium/pundit/context.rb
plutonium-0.12.3 lib/plutonium/pundit/context.rb
plutonium-0.12.2 lib/plutonium/pundit/context.rb
plutonium-0.12.1 lib/plutonium/pundit/context.rb
plutonium-0.12.0 lib/plutonium/pundit/context.rb