1
0
Fork 0
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:
Jonas Nicklas 2014-06-24 01:43:31 +02:00
parent d6f51f0c74
commit 451d8081e3

View file

@ -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