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.0.9 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.15 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.7 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.6 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.5 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.14 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.0.8 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.4 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.7.14.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.3.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.1.13.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.0.7.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.3 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.2 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.1 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.0.7 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-3.7.14 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.0 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.0.rc5 app/controllers/spree/admin/state_changes_controller.rb
spree_backend-4.2.0.rc4 app/controllers/spree/admin/state_changes_controller.rb