asciinema.org/app/policies/user_policy.rb
2014-07-05 14:59:42 +02:00

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