tab/app/models/concerns/transaction_helpers.rb

13 lines
232 B
Ruby
Raw Normal View History

2017-01-09 16:40:58 +01:00
module TransactionHelpers
include ActiveSupport::Concern
def peer_of(user)
return creditor if user == debtor
return debtor if user == creditor
end
def is_client_transaction?
issuer_type == 'Client'
end
end