Sha256: 02ac6c3fb6d8fd5d9b50600098a316cd7c506fa74e2ec1a5b3888a794ca0b4e6

Contents?: true

Size: 347 Bytes

Versions: 8

Compression:

Stored size: 347 Bytes

Contents

class EmailAddress < ActiveRecord::Base
  has_contact

  validates_format_of :email_address, :with => /\A[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]+\z/, :message => "Must be a valid email address"
 
  def summary_line
    "#{description} : #{email_address}"
  end

  def to_label
    "#{description} : #{email_address}"
  end


end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
erp_base_erp_svcs-3.0.7 app/models/email_address.rb
erp_base_erp_svcs-3.0.6 app/models/email_address.rb
erp_base_erp_svcs-3.0.5 app/models/email_address.rb
erp_base_erp_svcs-3.0.4 app/models/email_address.rb
erp_base_erp_svcs-3.0.3 app/models/email_address.rb
erp_base_erp_svcs-3.0.2 app/models/email_address.rb
erp_base_erp_svcs-3.0.1 app/models/email_address.rb
erp_base_erp_svcs-3.0.0 app/models/email_address.rb