Module: SolidusTaxCloud::Spree::Admin::OrdersControllerDecorator
- Defined in:
- lib/decorators/backend/controllers/solidus_tax_cloud/spree/admin/orders_controller_decorator.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/decorators/backend/controllers/solidus_tax_cloud/spree/admin/orders_controller_decorator.rb', line 7 def self.prepended(base) base.class_eval do rescue_from TaxCloud::Errors::ApiError do |exception| = exception.problem flash[:error] = I18n.t('spree.address_verification_failed') + ( ? ": #{}" : '') redirect_to edit_admin_order_customer_path(@order) end end end |