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