From 4ee142bc7f87df5641339272f1fa3d6c7c479775 Mon Sep 17 00:00:00 2001 From: Bounmy Stephane Date: Fri, 25 May 2012 19:50:05 +0200 Subject: [PATCH] fixed css and respond_to? --- app/controllers/spree/checkout_controller_decorator.rb | 2 +- app/views/spree/shared/paypal_express_confirm.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb index c2b91d2..48cad1c 100644 --- a/app/controllers/spree/checkout_controller_decorator.rb +++ b/app/controllers/spree/checkout_controller_decorator.rb @@ -149,7 +149,7 @@ module Spree @order.update_attribute(:state, "complete") state_callback(:after) # So that after_complete is called, setting session[:order_id] to nil - @order.send(:consume_users_credit) if @order.respond_to?(: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) if @order.respond_to?(:consume_users_credit, true)#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) diff --git a/app/views/spree/shared/paypal_express_confirm.html.erb b/app/views/spree/shared/paypal_express_confirm.html.erb index a4132db..9b3880c 100644 --- a/app/views/spree/shared/paypal_express_confirm.html.erb +++ b/app/views/spree/shared/paypal_express_confirm.html.erb @@ -11,7 +11,7 @@

-
+
<%= render :partial => 'spree/shared/order_details', :locals => {:order => @order} -%>
<%= button_to t(:place_order), paypal_finish_order_checkout_url(@order, {:token => params[:token] , :PayerID => params[:PayerID], :payment_method_id =>