class Doorkeeper::AccessToken

def self.revoke_all_for(application_id, resource_owner)

def self.revoke_all_for(application_id, resource_owner)
  where(:application_id => application_id,
        :resource_owner_id => resource_owner.id,
        :revoked_at => nil)
  .map(&:revoke)
end