aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-10-20 09:22:22 +0100
committerGareth Rees <gareth@mysociety.org>2014-10-20 09:22:22 +0100
commita2bc82815cbf1e94825528a6da23e430bcb8a36a (patch)
treed4427575afdf46a4aa6f921a26296eed7a2c8739 /app
parentba7f82453914c6e7f4f6f25a5ab510f6dc0af902 (diff)
Clean up AboutMeValidator
Remove self.
Diffstat (limited to 'app')
-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 7df70fb61..8c24cfd67 100644
--- a/app/models/about_me_validator.rb
+++ b/app/models/about_me_validator.rb
@@ -21,7 +21,7 @@ class AboutMeValidator
private
def length_of_about_me
- if !self.about_me.blank? && self.about_me.size > 500
+ if !about_me.blank? && about_me.size > 500
errors.add(:about_me, _("Please keep it shorter than 500 characters"))
end
end