Sha256: 77f85e5f0573964dab8116c61adaa5975bb872d8947764bffc7c2ab4312e7ce8

Contents?: true

Size: 386 Bytes

Versions: 36

Compression:

Stored size: 386 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)
      end

      private

      def load_order
        @order = Order.find_by_number!(params[:order_id])
        authorize! action, @order
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
spree_backend-3.1.0.rc3 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.0.rc2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.0.rc1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.8 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.7 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.6.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.6 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.5 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.4 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.3 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.0 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.0.rc4 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.0.rc3 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.0.rc1 app/controllers/spree/admin/state_changes_controller.rb