forgeplus/app/models/verification_code.rb

6 lines
117 B
Ruby
Raw Permalink Normal View History

2020-03-09 00:40:16 +08:00
class VerificationCode < ApplicationRecord
def effective?
created_at + 10.minute > Time.current
end
end