Skip to content

Commit

Permalink
Improve before_address in CheckoutController decorator to provide com…
Browse files Browse the repository at this point in the history
…patibility with Spree 0.50.x too
  • Loading branch information
romul committed Mar 26, 2011
1 parent 0cf87f9 commit 434af62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/checkout_controller_decorator.rb
@@ -1,8 +1,8 @@
CheckoutController.class_eval do
private
def before_address
@order.bill_address ||= Address.new(:country => default_country)
@order.ship_address ||= Address.new(:country => default_country)
@order.bill_address ||= Address.default
@order.ship_address ||= Address.default

@order.user.create_adjustment_for(@order) if @order.user
end
Expand Down

0 comments on commit 434af62

Please sign in to comment.