Sha256: 315e0da0d88804126c8086933f5946e618117c7aec3f3d118762fc9c81d5a1ee

Contents?: true

Size: 178 Bytes

Versions: 5

Compression:

Stored size: 178 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Policy < ApplicationPolicy
  class Scope < Struct.new(:user, :scope)
    def resolve
      scope
    end
  end
end
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pundit-0.2.3 lib/generators/pundit/policy/templates/policy.rb
pundit-0.2.2 lib/generators/pundit/policy/templates/policy.rb
pundit-0.2.1 lib/generators/pundit/policy/templates/policy.rb
pundit-0.2.0 lib/generators/pundit/policy/templates/policy.rb
pundit-0.1.0 lib/generators/pundit/policy/templates/policy.rb