Sha256: b30eb7c57f24385bb190c6f08c8686e505e7e0283573e9c14aac3d21cbb54753
Contents?: true
Size: 292 Bytes
Versions: 1
Compression:
Stored size: 292 Bytes
Contents
# handle shipping errors gracefully during order update Spree::OrdersController.class_eval do rescue_from Spree::ShippingError, :with => :handle_shipping_error private def handle_shipping_error(e) flash[:error] = e.message redirect_back_or_default(root_path) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_active_shipping-1.0.0 | app/controllers/spree/orders_controller_decorator.rb |