From 43a11c8c626e8005441754514132667df8659bd0 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 31 May 2013 22:11:05 -0300 Subject: [PATCH] Fix syntax error in Ruby 1.9 (again) --- app/models/user.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index c4d2033..92d79fe 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -18,8 +18,10 @@ class User < ActiveRecord::Base # FIXME ugly workaround def self.human_attribute_name(attrib) case attrib.to_sym - when :login: return [_('Username'), _('Email')].join(' / ') - when :email: return _('e-Mail') + when :login + return [_('Username'), _('Email')].join(' / ') + when :email + return _('e-Mail') else _(self.superclass.human_attribute_name(attrib)) end end -- libgit2 0.21.2