Sha256: b9a7d7adcac2d69e9b7cc9bfbfaa2ecdecc64ff100e00a4a3d08a507fab80913

Contents?: true

Size: 382 Bytes

Versions: 16

Compression:

Stored size: 382 Bytes

Contents

module Admin
  class Installment < ActiveRecord::Base
    include Carnival::ModelHelper
    self.table_name = "installments"

    has_many :installments_credit_cads, class_name: "Admin::InstallmentsCreditCads"
    has_many :credit_cards, through: :installments_credit_cads

    accepts_nested_attributes_for :credit_cards, :reject_if => :all_blank, :allow_destroy => true
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
carnival-0.0.59 test/dummy/app/models/admin/installment.rb
carnival-0.0.58 test/dummy/app/models/admin/installment.rb
carnival-0.0.57 test/dummy/app/models/admin/installment.rb
carnival-0.0.56 test/dummy/app/models/admin/installment.rb
carnival-0.0.55 test/dummy/app/models/admin/installment.rb
carnival-0.0.54 test/dummy/app/models/admin/installment.rb
carnival-0.0.53 test/dummy/app/models/admin/installment.rb
carnival-0.0.52 test/dummy/app/models/admin/installment.rb
carnival-0.0.51 test/dummy/app/models/admin/installment.rb
carnival-0.0.50 test/dummy/app/models/admin/installment.rb
carnival-0.0.49 test/dummy/app/models/admin/installment.rb
carnival-0.0.48 test/dummy/app/models/admin/installment.rb
carnival-0.0.47 test/dummy/app/models/admin/installment.rb
carnival-0.0.45 test/dummy/app/models/admin/installment.rb
carnival-0.0.44 test/dummy/app/models/admin/installment.rb
carnival-0.0.43 test/dummy/app/models/admin/installment.rb