aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-05-21 10:00:45 +0200
committerLouise Crow <louise.crow@gmail.com>2015-05-21 10:00:45 +0200
commit8fd1be6dcd444f737a96df3f7934261cfe9bb4e2 (patch)
tree8214115b4565df27f23904616f36e55afbef770b
parent226079e10290ddf1d22c43de283ce452d98b765d (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.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 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|