Sha256: 0df7d02cd0a4983cb0265d970f079d926643497ebe538a3b63614ec1cd9f2f5c

Contents?: true

Size: 421 Bytes

Versions: 89

Compression:

Stored size: 421 Bytes

Contents

module Spree
  module Admin
    class LogEntriesController < Spree::Admin::BaseController
      before_action :find_order_and_payment

      def index
        @log_entries = @payment.log_entries
      end

      private

      def find_order_and_payment
        @order = Spree::Order.find_by!(number: params[:order_id])
        @payment = @order.payments.find_by!(number: params[:payment_id])
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
spree_backend-3.5.0.rc1 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.5 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.4 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.3 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.2 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.1 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.0 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.0.rc2 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.4.0.rc1 app/controllers/spree/admin/log_entries_controller.rb