Sha256: a158d0ec550645e81712896e407747296b5d931091b0e7a44dfd0a3460c85bc2
Contents?: true
Size: 371 Bytes
Versions: 5
Compression:
Stored size: 371 Bytes
Contents
class Phone < MLS::Model self.inheritance_column = false TYPES = ['mobile', 'work', 'home', 'main', 'home fax' 'work fax', 'other fax', 'pager', 'other', 'office'] belongs_to :account def number=(value) write_attribute(:number, PhoneValidator.normalize(value)) write_attribute(:carrier_name, nil) write_attribute(:carrier_type, nil) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mls-1.9.0 | lib/mls/models/phone.rb |
mls-1.8.0 | lib/mls/models/phone.rb |
mls-1.7.0 | lib/mls/models/phone.rb |
mls-1.6.0 | lib/mls/models/phone.rb |
mls-1.5.1 | lib/mls/phone.rb |