validate contact form email

This commit is contained in:
2014-08-07 17:55:04 +02:00
parent a428d41955
commit 25a7db109b
+1
View File
@@ -6,5 +6,6 @@ module Cmtool
property :email
property :phone
property :body
validates :email, presence: true
end
end