Sha256: 1f24f2948e06184111aaac6bfe6960242e7625f13f95723cdb21bb43e74b4ede
Contents?: true
Size: 411 Bytes
Versions: 13
Compression:
Stored size: 411 Bytes
Contents
module Spree module Admin class StateChangesController < Spree::Admin::BaseController before_action :load_order, only: [:index] def index @state_changes = @order.state_changes.includes(:user).order(created_at: :desc) end private def load_order @order = Order.find_by_number!(params[:order_id]) authorize! action, @order end end end end
Version data entries
13 entries across 13 versions & 1 rubygems