Sha256: 8ba467d318efa939adb8b86db088e075182e26ced7b91e89f23ecfa35b00c213
Contents?: true
Size: 249 Bytes
Versions: 14
Compression:
Stored size: 249 Bytes
Contents
module Doorkeeper module Models module Revocable def revoke(clock = DateTime) update_attribute :revoked_at, clock.now end def revoked? !!(revoked_at && revoked_at <= DateTime.now) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems