14 lines
167 B
Ruby
14 lines
167 B
Ruby
|
class UserPolicy < ApplicationPolicy
|
||
|
|
||
|
class Scope < Struct.new(:user, :scope)
|
||
|
def resolve
|
||
|
scope
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def update?
|
||
|
record == user
|
||
|
end
|
||
|
|
||
|
end
|