Sha256: 8314c683062deb98f744c375feeedc768dddadaedf8fcc8536fd283d905be592
Contents?: true
Size: 403 Bytes
Versions: 4
Compression:
Stored size: 403 Bytes
Contents
module CustomerVault class Individual < Person self.table_name = 'customer_vault_individuals' def name [self.last_name, self.first_name].join(', ') end validates_presence_of :first_name validates_presence_of :last_name has_one :address, class_name: 'Dorsale::Address', as: :addressable accepts_nested_attributes_for :address, allow_destroy: true end end
Version data entries
4 entries across 4 versions & 1 rubygems