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

Version Path
solidus_backend-2.11.17 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.16 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.15 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.14 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.13 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.12 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.11 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.10.5 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.10 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.9 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.8 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.7 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.6 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.5 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.4 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.3 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.2 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.1 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.10.3 app/controllers/spree/admin/log_entries_controller.rb
solidus_backend-2.11.0 app/controllers/spree/admin/log_entries_controller.rb