asciinema.org/app/policies/user_policy.rb

14 lines
167 B
Ruby
Raw Normal View History

2014-07-05 12:59:42 +00:00
class UserPolicy < ApplicationPolicy
class Scope < Struct.new(:user, :scope)
def resolve
scope
end
end
def update?
record == user
end
end