Sha256: b6aee0638086f53511614e95f48e22c02f1fb767f43392058295dc950551d461

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

class EmailAddress < ActiveRecord::Base
  attr_protected :created_at, :updated_at

  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

6 entries across 6 versions & 1 rubygems

Version Path
erp_base_erp_svcs-3.1.5 app/models/email_address.rb
erp_base_erp_svcs-3.1.4 app/models/email_address.rb
erp_base_erp_svcs-3.1.3 app/models/email_address.rb
erp_base_erp_svcs-3.1.2 app/models/email_address.rb
erp_base_erp_svcs-3.1.1 app/models/email_address.rb
erp_base_erp_svcs-3.1.0 app/models/email_address.rb