Sha256: a2d41d07cc3bc7a6f6d34f2eaeabd47f98ec7ec36beb40150fb8e2d9505ec6b4

Contents?: true

Size: 190 Bytes

Versions: 64

Compression:

Stored size: 190 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module PolicyHelper
    def pundit_policy_for(klass)
      Pundit.policy(
        current_user,
        klass.new
      )
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/helpers/renalware/policy_helper.rb
renalware-core-2.1.0 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.167 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.166 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.165 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.164 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.163 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.162 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.161 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.160 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.159 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.158 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.157 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.156 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.155 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.153 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.152 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.151 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.149 app/helpers/renalware/policy_helper.rb
renalware-core-2.0.148 app/helpers/renalware/policy_helper.rb