Permalink
Browse files

revert flash.keep thing

  • Loading branch information...
1 parent 05cfbff commit e9d7af510795a5027c32b22059162a141d2f3613 @nov committed May 16, 2011
Showing with 3 additions and 9 deletions.
  1. +3 −9 app/controllers/payments_controller.rb
@@ -47,20 +47,14 @@ def client
def handle_callback
payment = Payment.find_by_token! params[:token]
- redirect_uri = yield payment
+ @redirect_uri = yield payment
if payment.popup?
- close_flow redirect_uri
+ render :close_flow, layout: false
else
- redirect_to redirect_uri
+ redirect_to @redirect_uri
end
end
- def close_flow(redirect_uri = root_url)
- @redirect_uri = redirect_uri
- flash.keep
- render :close_flow, layout:false
- end
-
def paypal_api_error(e)
redirect_to root_url, error: e.response.details.collect(&:long_message).join('<br />')
end

0 comments on commit e9d7af5

Please sign in to comment.