Sha256: 52e8a4e385b7fcab991ec061210454a7b1cb67ac60a5c496171981b59be441c9

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

require "dorsale/search"

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

5 entries across 5 versions & 1 rubygems

Version Path
customer_vault-1.2.10 app/models/customer_vault/individual.rb
customer_vault-1.2.9 app/models/customer_vault/individual.rb
customer_vault-1.2.8 app/models/customer_vault/individual.rb
customer_vault-1.2.7 app/models/customer_vault/individual.rb
customer_vault-1.2.6 app/models/customer_vault/individual.rb