API v1 Add financial_transaction_type to FinancialTransactions output

This commit is contained in:
Patrick Gansterer 2021-02-08 01:09:01 +01:00
parent be269101f8
commit 88228022e3
4 changed files with 14 additions and 3 deletions

View file

@ -14,7 +14,7 @@ class Api::V1::FinancialTransactionsController < Api::V1::BaseController
private
def scope
FinancialTransaction.includes(:user)
FinancialTransaction.includes(:user, :financial_transaction_type)
end
def ransack_auth_object

View file

@ -15,7 +15,7 @@ class Api::V1::User::FinancialTransactionsController < Api::V1::BaseController
private
def scope
current_ordergroup.financial_transactions.includes(:user)
current_ordergroup.financial_transactions.includes(:user, :financial_transaction_type)
end
end