Module: TopUpAccessor
- Defined in:
- app/accessors/top_up_accessor.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/accessors/top_up_accessor.rb', line 2 def self.included(base) base.class_eval do belongs_to :wallet has_one :currency, through: :wallet belongs_to :channel, class_name: 'PaymentChannelByCurrency' end end |