Sha256: 3c2c01009b6ddb9795f98dfaf62ad72b4bb05825e7f5489245fc41cb6abc62a5

Contents?: true

Size: 298 Bytes

Versions: 3

Compression:

Stored size: 298 Bytes

Contents

module CustomerVault
  class Individual < Person
    self.table_name = 'customer_vault_individuals'

    include Dorsale::Search

    validates :first_name, presence: true
    validates :last_name,  presence: true

    def name
      [self.last_name, self.first_name].join(', ')
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
customer_vault-1.3.2 app/models/customer_vault/individual.rb
customer_vault-1.3.1 app/models/customer_vault/individual.rb
customer_vault-1.3.0 app/models/customer_vault/individual.rb