Sha256: 3171cef80661b78e67d0d616f1f2c7bed2ac23f10d4b6d2799d244018fecc22e

Contents?: true

Size: 162 Bytes

Versions: 5

Compression:

Stored size: 162 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Policy < ApplicationPolicy
  class Scope < Scope
    def resolve
      scope.all
    end
  end
end
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pundit-2.1.1 lib/generators/pundit/policy/templates/policy.rb
pundit-2.1.0 lib/generators/pundit/policy/templates/policy.rb
pundit-2.0.1 lib/generators/pundit/policy/templates/policy.rb
pundit-2.0.0 lib/generators/pundit/policy/templates/policy.rb
pundit-2.0.0.beta1 lib/generators/pundit/policy/templates/policy.rb