Module: JournalEntryAccessor
- Defined in:
- app/accessors/journal_entry_accessor.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'app/accessors/journal_entry_accessor.rb', line 2 def self.included(base) base.class_eval do belongs_to :wallet belongs_to :top_up belongs_to :withdrawal has_one :currency, through: :wallet delegate :investor, to: :wallet end end |