Sha256: 9de5083c00b6ede1a5953f8faa4e55346d9c55ad3986d04ffaf5eb05c45af8cc
Contents?: true
Size: 444 Bytes
Versions: 33
Compression:
Stored size: 444 Bytes
Contents
# frozen_string_literal: true 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.where(number: params[:order_id]).first! @payment = @order.payments.find(params[:payment_id]) end end end end
Version data entries
33 entries across 33 versions & 2 rubygems