mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Inherit from application policy scope instead of using Struct
This commit is contained in:
parent
d6f51f0c74
commit
451d8081e3
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
<% module_namespacing do -%>
|
||||
class <%= class_name %>Policy < ApplicationPolicy
|
||||
class Scope < Struct.new(:user, :scope)
|
||||
class Scope < Scope
|
||||
def resolve
|
||||
scope
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue