app/controllers/kaui/transactions_controller.rb in kaui-3.0.2 vs app/controllers/kaui/transactions_controller.rb in kaui-3.0.4

- old
+ new

@@ -1,11 +1,11 @@ # frozen_string_literal: true module Kaui class TransactionsController < Kaui::EngineController def restful_show - payment = Kaui::Payment.find_by_transaction_id(params.require(:id), false, true, options_for_klient) + payment = Kaui::Payment.find_by_transaction_id(params.require(:id), false, true, [], 'NONE', options_for_klient) redirect_to account_payment_path(payment.account_id, payment.payment_id) end def new @account_id = params[:account_id] @@ -16,10 +16,10 @@ @transaction = Kaui::Transaction.new(payment_id: params[:payment_id], amount: params[:amount], currency: params[:currency], transaction_type: params[:transaction_type]) else - payment = Kaui::Payment.find_by_transaction_id(transaction_id, false, false, options_for_klient) + payment = Kaui::Payment.find_by_transaction_id(transaction_id, false, false, [], 'NONE', options_for_klient) @transaction = Kaui::Transaction.build_from_raw_transaction(payment.transactions.find { |tx| tx.transaction_id == transaction_id }) end end def create