Module: BitcoinPayable::Model::ClassMethods

Defined in:
lib/bitcoin_payable/has_bitcoin_payment.rb

Instance Method Summary collapse

Instance Method Details

#has_bitcoin_payments(options = {}) ⇒ Object



10
11
12
# File 'lib/bitcoin_payable/has_bitcoin_payment.rb', line 10

def has_bitcoin_payments(options = {})
  has_many :bitcoin_payments, -> {order(:id)}, class_name: BitcoinPayable::BitcoinPayment, as: 'payable'
end