dirty fix store_credit_callback

This commit is contained in:
Bounmy Stephane 2012-05-22 23:26:11 +02:00
parent 9d2c8fda03
commit 287eee48a1
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ module Spree
@order.update_attribute(:state, "complete")
state_callback(:after) # So that after_complete is called, setting session[:order_id] to nil
@order.consume_users_credit #since we dont rely on state machine callback, we just explicitly call this method for spree_store_credits
@order.finalize!
flash[:notice] = I18n.t(:order_processed_successfully)
redirect_to completion_route