Permalink
Browse files

Use the Errors.add_to_base method because errors[:base] may not alway…

…s be initialized to an array
  • Loading branch information...
1 parent 56e38e5 commit 4f6b692fe67ea9972b8e0337500b3bceb7458df9 Eric Lee committed Apr 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/recurly/base.rb
View
@@ -105,7 +105,7 @@ def load_errors_from_array(new_errors, save_cache = false)
message = error['message']
if field.blank?
- errors[:base] << message
+ errors.add_to_base message
next
end
@@ -122,7 +122,7 @@ def load_errors_from_array(new_errors, save_cache = false)
end
end
- errors[:base] << message
+ errors.add_to_base message
end
end
end

0 comments on commit 4f6b692

Please sign in to comment.