Sha256: 8292c5fa2df11d7cdbffee6313dc47e9d759e22564fa16113e83a97de032c00b

Contents?: true

Size: 283 Bytes

Versions: 14

Compression:

Stored size: 283 Bytes

Contents

module Admin
  class CreditCard < ActiveRecord::Base
    include Carnival::ModelHelper
    self.table_name = "credit_cards"
    
    has_many :installments_credit_cads
    has_many :installments, through: :installments_credit_cads

    def to_label
      name      
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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