Sha256: ed294cbb2803341c36835be8675ff902db5234758abb952aea9cf20543094540
Contents?: true
Size: 296 Bytes
Versions: 11
Compression:
Stored size: 296 Bytes
Contents
# frozen_string_literal: true module Maquina class Invitation < ApplicationRecord validates :email, presence: true, format: {with: URI::MailTo::EMAIL_REGEXP} def accepted? accepted_at.present? end def accept! update!(accepted_at: Time.zone.now) end end end
Version data entries
11 entries across 11 versions & 1 rubygems