Sha256: 509fd7e05a5dbcf69460dfebcffd06920495536cf8bc122fe742771b52bd82e4
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
# handle shipping errors gracefully during checkout Spree::CheckoutController.class_eval do rescue_from Spree::ShippingError, :with => :handle_shipping_error private def handle_shipping_error(e) flash[:error] = e.message redirect_to checkout_state_path(:address) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_active_shipping-1.0.0 | app/controllers/spree/checkout_controller_decorator.rb |