From a2bc82815cbf1e94825528a6da23e430bcb8a36a Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Mon, 20 Oct 2014 09:22:22 +0100 Subject: Clean up AboutMeValidator Remove self. --- app/models/about_me_validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') 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 -- cgit v1.2.3