aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-06 13:22:45 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-07-06 13:22:45 +0100
commitb172995023ea90bac0bb534f8f185fa435f8aefd (patch)
treefee15d4f15f3df60f82ae6d4f8a5931bd35c2eeb /app/models/user.rb
parent732b3e5c430a83f72adb44dc621d48edb86f081f (diff)
Changes required to get selishta (Kosovo) fork merges to pass tests. Includes new "REPLY_LATE_AFTER_DAYS" config option.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index e199eb352..e29ae3101 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -103,7 +103,7 @@ class User < ActiveRecord::Base
def validate
if self.email != "" && !MySociety::Validate.is_valid_email(self.email)
- errors.add(_("Please enter a valid email address"))
+ errors.add(:email, _("Please enter a valid email address"))
end
if MySociety::Validate.is_valid_email(self.name)
errors.add(:name, _("Please enter your name, not your email address, in the name field."))