Sha256: d0e84a0f6a67456b11f00cdbbd7c476523402309a23c33d9d78607c8cda28b5d

Contents?: true

Size: 412 Bytes

Versions: 98

Compression:

Stored size: 412 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

98 entries across 98 versions & 1 rubygems

Version Path
spree_backend-4.2.0.rc3 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.13 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.0.6 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.0.rc2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.7.13 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.0.5 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.12 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.7.12 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.0.rc1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.0.4 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.7.11 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.11 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.10 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.0.beta app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.9 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.8 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.7 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.6 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.5 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.4 app/controllers/spree/admin/state_changes_controller.rb