1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-28 09:39:39 +02:00
Maybe/app/models/transaction.rb

13 lines
204 B
Ruby
Raw Normal View History

class Transaction < ApplicationRecord
belongs_to :account
belongs_to :category, optional: true
after_commit :sync_account
private
def sync_account
self.account.sync_later
end
end