Skip to content

Commit

Permalink
fixed handling of extension errors on update_account
Browse files Browse the repository at this point in the history
  • Loading branch information
ethn committed Mar 1, 2012
1 parent dcd9875 commit 586ad62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/card_controller.rb
Expand Up @@ -154,7 +154,9 @@ def update_account
end

if extension && extension.errors.any?
@card.errors = extension.errors
extension.errors.each do |field, err|
@card.errors.add field, err
end
render_errors
else
render_show
Expand Down

0 comments on commit 586ad62

Please sign in to comment.