Commit 43a11c8c626e8005441754514132667df8659bd0
1 parent
8bdc8233
Exists in
master
and in
29 other branches
Fix syntax error in Ruby 1.9 (again)
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
app/models/user.rb
... | ... | @@ -18,8 +18,10 @@ class User < ActiveRecord::Base |
18 | 18 | # FIXME ugly workaround |
19 | 19 | def self.human_attribute_name(attrib) |
20 | 20 | case attrib.to_sym |
21 | - when :login: return [_('Username'), _('Email')].join(' / ') | |
22 | - when :email: return _('e-Mail') | |
21 | + when :login | |
22 | + return [_('Username'), _('Email')].join(' / ') | |
23 | + when :email | |
24 | + return _('e-Mail') | |
23 | 25 | else _(self.superclass.human_attribute_name(attrib)) |
24 | 26 | end |
25 | 27 | end | ... | ... |