aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2012-01-06 20:50:38 +0100
committerDavid Cabo <david@calibea.com>2012-01-06 20:50:38 +0100
commit5163ea88dc41a2c30dffeec62725878d540a6011 (patch)
tree0818ae284d5bfef2fefd601f4a4c22451fa7c952
parent76944950a1d37f3aa70aa5bab4b209c2886ea85a (diff)
Fix user profile validation errors not showing. Fixes #317
-rw-r--r--app/models/about_me_validator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/about_me_validator.rb b/app/models/about_me_validator.rb
index ec2b03201..e24c5512c 100644
--- a/app/models/about_me_validator.rb
+++ b/app/models/about_me_validator.rb
@@ -21,7 +21,7 @@ class AboutMeValidator < ActiveRecord::BaseWithoutTable
def validate
if !self.about_me.blank? && self.about_me.size > 500
- errors.add(_("Please keep it shorter than 500 characters"))
+ errors.add(:about_me, _("Please keep it shorter than 500 characters"))
end
end