Permalink
Browse files

execution ordering (and preventing) does make a difference (signed: c…

…pt. obvious)
  • Loading branch information...
tomash committed Dec 17, 2010
1 parent 4ebb6fb commit 3cf61eca21537b24f7867f9a7723f8f3dc00ba85
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/checkout_controller_decorator.rb
@@ -5,7 +5,7 @@
CheckoutController.class_eval do
def edit
- if (@order.valid? && @order.state == "payment")
+ if ((@order.state == "payment") && @order.valid?)
puts "valid, processing"
if @order.payable_via_paypal?
puts "payable via paypal, adding payment"

0 comments on commit 3cf61ec

Please sign in to comment.