summaryrefslogtreecommitdiffstats
path: root/lib/contact.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/contact.rb')
-rw-r--r--lib/contact.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/contact.rb b/lib/contact.rb
index d5fd267..0a7a449 100644
--- a/lib/contact.rb
+++ b/lib/contact.rb
@@ -17,7 +17,7 @@ class Contact
end
def valid?
- validate!
+ validate! unless @errors
@errors.length == 0
end