Skip to content

Commit

Permalink
Reverts change in checkout_controller_decorator.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
PSzyszkaSpark committed Sep 30, 2019
1 parent 6a4c9b3 commit 753dbee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def registration
end

def update_registration
if order_params[:email] =~ Devise.email_regexp && current_order.update(email: order_params[:email])
if order_params[:email] =~ Devise.email_regexp && current_order.update_attribute(:email, order_params[:email])
redirect_to spree.checkout_state_path(:address)
else
flash[:error] = t(:email_is_invalid, scope: [:errors, :messages])
Expand Down

0 comments on commit 753dbee

Please sign in to comment.