diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 16:54:33 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2017-10-02 16:54:33 +0200 |
commit | 1bce43d6a51ee09631f55cf427a2e110d901ecb2 (patch) | |
tree | 872cf8d6d975c5c17d446e7ec7d45e52ce669242 /lib/contact.rb | |
parent | ac268300ef9e97f8b1a3e2fc6d0bf5903bf7067b (diff) | |
download | norsk-urskog-registrations-1bce43d6a51ee09631f55cf427a2e110d901ecb2.tar.gz norsk-urskog-registrations-1bce43d6a51ee09631f55cf427a2e110d901ecb2.tar.bz2 norsk-urskog-registrations-1bce43d6a51ee09631f55cf427a2e110d901ecb2.zip |
Don't validate again when checking if valid.
Unless validation has not yet been performed, of course.
Diffstat (limited to 'lib/contact.rb')
-rw-r--r-- | lib/contact.rb | 2 |
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 |