Sha256: 1844b32f9d3ea4866a312294a6d4b0f3a2cf0468c3457b1f3d561717cb401567

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

module CustomerVault
  class Corporation < Person
    self.table_name = 'customer_vault_corporations'
    
    validates_presence_of :name
    has_one :address, class_name: 'Dorsale::Address', as: :addressable
    accepts_nested_attributes_for :address, allow_destroy: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
customer_vault-1.0.4 app/models/customer_vault/corporation.rb
customer_vault-1.0.3 app/models/customer_vault/corporation.rb
customer_vault-1.0.2 app/models/customer_vault/corporation.rb
customer_vault-1.0.1 app/models/customer_vault/corporation.rb
customer_vault-1.0.0 app/models/customer_vault/corporation.rb