diff options
author | David Cabo <david@calibea.com> | 2012-01-06 20:50:38 +0100 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2012-01-06 20:50:38 +0100 |
commit | 5163ea88dc41a2c30dffeec62725878d540a6011 (patch) | |
tree | 0818ae284d5bfef2fefd601f4a4c22451fa7c952 | |
parent | 76944950a1d37f3aa70aa5bab4b209c2886ea85a (diff) |
Fix user profile validation errors not showing. Fixes #317
-rw-r--r-- | app/models/about_me_validator.rb | 2 |
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 |