module Doorkeeper::Models::Revocable

def revoke(clock = DateTime)

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

def revoked?

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