You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/models/verification_code.rb

6 lines
117 B

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