Sha256: 62baab9aa4ea834e91838fadfea4e97bbad12c5b1f1d7b53720a6eeb4db2be8d

Contents?: true

Size: 233 Bytes

Versions: 6

Compression:

Stored size: 233 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Policy < ApplicationPolicy
  class Scope < Scope
    # NOTE: Be explicit about which records you allow access to!
    # def resolve
    #   scope.all
    # end
  end
end
<% end -%>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/pundit/policy/templates/policy.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/pundit/policy/templates/policy.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/pundit-2.2.0/lib/generators/pundit/policy/templates/policy.rb
pundit-2.3.1 lib/generators/pundit/policy/templates/policy.rb
pundit-2.3.0 lib/generators/pundit/policy/templates/policy.rb
pundit-2.2.0 lib/generators/pundit/policy/templates/policy.rb