From 25a7db109bb89925fd1863f916af2f82dca483c9 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 7 Aug 2014 17:55:04 +0200 Subject: [PATCH] validate contact form email --- app/models/cmtool/contact_form.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/cmtool/contact_form.rb b/app/models/cmtool/contact_form.rb index 09b6a22..bc767ac 100644 --- a/app/models/cmtool/contact_form.rb +++ b/app/models/cmtool/contact_form.rb @@ -6,5 +6,6 @@ module Cmtool property :email property :phone property :body + validates :email, presence: true end end