Permalink
Browse files

Fix error message errors.

  • Loading branch information...
1 parent 6f82488 commit e4fa7434ccde53f8270f58e3c29b0be3a0ba37d7 @scrozier committed Feb 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/donation.rb
@@ -41,7 +41,7 @@ def card_valid?
:type => @credit_card_type,
)
return true if @credit_card.valid?
- errors.add_to_base(object_errors(@credit_card))
+ @credit_card.errors.full_messages{|m| errors.add_to_base(m)
end
def name_and_address

0 comments on commit e4fa743

Please sign in to comment.