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.14 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.13 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.12 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.11 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.10 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.9 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.8 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.7 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.6 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.5 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.4 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.0.rc2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.2.0.rc1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.3 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.10 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.0 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.1.0.rc4 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.0.9 app/controllers/spree/admin/state_changes_controller.rb