module Doorkeeper::Models::Revocable

def revoke(clock = Time)

def revoke(clock = Time)
  update_attribute :revoked_at, clock.now
end

def revoked?

def revoked?
  !!(revoked_at && revoked_at <= Time.now)
end