forgeplus/app/models/verification_code.rb

6 lines
117 B
Ruby

class VerificationCode < ApplicationRecord
def effective?
created_at + 10.minute > Time.current
end
end