Sha256: 59d5cb36efaca7f0bc111db7d5956c4a7450b86d7936359abd291849f69abc38
Contents?: true
Size: 374 Bytes
Versions: 22
Compression:
Stored size: 374 Bytes
Contents
Spree::BaseController.class_eval do before_filter :check_current_order def check_current_order if current_order or session[:order_id] order = current_order if (order.payment_state == "paid") or (order.payment_state == "credit_owed") session[:order_id] = nil order.line_items.destroy_all flash[:notice] = t(:pp_ws_payment_received) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
spree_pag_seguro-1.0.0.beta2 | app/controllers/spree/base_controller_decorator.rb.rb |
spree_pag_seguro-1.0.0.beta1 | app/controllers/spree/base_controller_decorator.rb.rb |