12 lines
232 B
Ruby
12 lines
232 B
Ruby
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
|