Sha256: 6fd286b4ffc48e468ef1486e39f81e090c38267eb6867bff62659e7ac3596319
Contents?: true
Size: 666 Bytes
Versions: 32
Compression:
Stored size: 666 Bytes
Contents
# frozen_string_literal: true module Spree module Admin class LogEntriesController < Spree::Admin::BaseController before_action :find_order_and_payment def index Spree::Deprecation.warn 'Using a dedicated route for payment log entries ' \ 'has been deprecated in favor of displaying the log entries on ' \ 'the payment screen itself.', caller_locations(0) @log_entries = @payment.log_entries end private def find_order_and_payment @order = Spree::Order.where(number: params[:order_id]).first! @payment = @order.payments.find(params[:payment_id]) end end end end
Version data entries
32 entries across 32 versions & 1 rubygems