Sha256: 6f8b773d6cf89f56419c9760e59da6d358a93244fa9a723d3bf708b1d865f0aa

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

Spree::Admin::OrdersController.class_eval do
  rescue_from SolidusShipCompliant::Error do |exception|
    exception_message = exception.problem
    flash[:error] = Spree.t(:address_verification_failed) + (exception_message ? ": #{exception_message}" : '')
    redirect_to edit_admin_order_customer_path(@order)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_ship_compliant-1.0.0 app/controllers/spree/admin/orders_controller_decorator.rb