Sha256: 6e19eefd4b86944c43d4b7c593e730ce472815906c821a6859c0d39dce5d7ba4

Contents?: true

Size: 233 Bytes

Versions: 5

Compression:

Stored size: 233 Bytes

Contents

module Cally
  class Invitation < ActiveRecord::Base
  
    before_save { self.email = email.downcase }
    validates :email, uniqueness: { case_sensitive: false }, format: { with: /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i }
  
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cally-2.0.0 app/models/cally/invitation.rb
cally-1.0.3 app/models/cally/invitation.rb
cally-1.0.2 app/models/cally/invitation.rb
cally-1.0.1 app/models/cally/invitation.rb
cally-1.0.0 app/models/cally/invitation.rb