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-4.0.9 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.1.15 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.7 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.6 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.5 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.1.14 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.0.8 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.4 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.7.14.1 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.3.1 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.1.13.1 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.0.7.1 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.3 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.2 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.1 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.0.7 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-3.7.14 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.0 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.0.rc5 app/controllers/spree/admin/log_entries_controller.rb
spree_backend-4.2.0.rc4 app/controllers/spree/admin/log_entries_controller.rb