lib/doorkeeper/models/revocable.rb



module Doorkeeper
  module Models
    module Revocable
      def revoke(clock = DateTime)
        update_column :revoked_at, clock.now
      end

      def revoked?
        revoked_at.present?
      end
    end
  end
end