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

Version Path
spree_backend-3.2.9 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.8 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.7 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.6 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.5 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.4 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.3 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.3.0.rc2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.3.0.rc1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.0 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.0.rc3 app/controllers/spree/admin/state_changes_controller.rb