Module: CryptocoinPayable::Model::ClassMethods
- Defined in:
- lib/cryptocoin_payable/has_coin_payments.rb
Instance Method Summary collapse
-
#has_coin_payments(_options = {}) ⇒ Object
rubocop:disable Naming/PredicateName.
Instance Method Details
#has_coin_payments(_options = {}) ⇒ Object
rubocop:disable Naming/PredicateName
8 9 10 11 12 |
# File 'lib/cryptocoin_payable/has_coin_payments.rb', line 8 def has_coin_payments( = {}) # rubocop:disable Naming/PredicateName has_many :coin_payments, -> { order(:id) }, class_name: 'CryptocoinPayable::CoinPayment', as: 'payable' end |