diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-21 10:00:45 +0200 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-21 10:00:45 +0200 |
commit | 8fd1be6dcd444f737a96df3f7934261cfe9bb4e2 (patch) | |
tree | 8214115b4565df27f23904616f36e55afbef770b | |
parent | 226079e10290ddf1d22c43de283ce452d98b765d (diff) |
Support old hash syntax
We won't drop ruby 1.8.7 support until 0.23
-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 a04db331b..8465b0716 100644 --- a/app/models/about_me_validator.rb +++ b/app/models/about_me_validator.rb @@ -10,7 +10,7 @@ class AboutMeValidator attr_accessor :about_me - validates_length_of :about_me, maximum: 500, message: _("Please keep it shorter than 500 characters") + validates_length_of :about_me, :maximum => 500, :message => _("Please keep it shorter than 500 characters") def initialize(attributes = {}) attributes.each do |name, value| |