Sha256: 5075d55f7b1819b269c58ec6245d8e8a891bf742d55715cd076e5efba97ed2be

Contents?: true

Size: 184 Bytes

Versions: 5

Compression:

Stored size: 184 Bytes

Contents

class EmailAddress < MLS::Model
  self.inheritance_column = false
  
  TYPES = %w(work personal other)
  
  has_many :emails
  
  belongs_to :account

  def name
    address
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mls-1.9.0 lib/mls/models/email_address.rb
mls-1.8.0 lib/mls/models/email_address.rb
mls-1.7.0 lib/mls/models/email_address.rb
mls-1.6.0 lib/mls/models/email_address.rb
mls-1.5.1 lib/mls/email_address.rb