private method!

This commit is contained in:
Bounmy Stephane 2012-05-24 00:48:31 +02:00
parent 287eee48a1
commit 63b2c21438
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ 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.send(: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)