Sha256: 377ca3ca1a0ecc14f4b4aeae481c5d29771690e3b5581e0a10bfe1b235ade8b8

Contents?: true

Size: 441 Bytes

Versions: 32

Compression:

Stored size: 441 Bytes

Contents

module Spree
  module Admin
    class ReturnItemsController < ResourceController
      private

      def location_after_save
        url_for([:edit, :admin, @return_item.customer_return.order, @return_item.customer_return])
      end

      def render_after_update_error
        redirect_back(fallback_location: location_after_save,
                    flash: { error: @object.errors.full_messages.join(', ') })
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.5.1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.5.0 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.5.0.rc1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.5.0.beta2 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.5.0.beta1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.4.2 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.4.1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.3.1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.2.2 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.1.1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.0.3 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.4.0 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.4.0.rc1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.4.0.beta1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.3.0 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.3.0.rc3 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.3.0.rc2 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.3.0.rc1 app/controllers/spree/admin/return_items_controller.rb
solidus_backend-2.3.0.beta1 app/controllers/spree/admin/return_items_controller.rb