Sha256: 3543d6afccacb1906575bd9166f2bcc7ab8d193c53af1a0f2457c5758c5346dc
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
class Dorsale::CustomerVault::Individual < Dorsale::CustomerVault::Person serialize :data, Dorsale::CustomerVault::IndividualData def_delegators :data, *Dorsale::CustomerVault::IndividualData.methods_to_delegate validates :first_name, presence: true validates :last_name, presence: true belongs_to :corporation def name [self.last_name, self.first_name].join(", ") end private def corporation_name; raise NoMethodError; end private def corporation_name=; raise NoMethodError; end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dorsale-3.5.1 | app/models/dorsale/customer_vault/individual.rb |