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,8 +18,10 @@ class User < ActiveRecord::Base | ||
18 | # FIXME ugly workaround | 18 | # FIXME ugly workaround |
19 | def self.human_attribute_name(attrib) | 19 | def self.human_attribute_name(attrib) |
20 | case attrib.to_sym | 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 | else _(self.superclass.human_attribute_name(attrib)) | 25 | else _(self.superclass.human_attribute_name(attrib)) |
24 | end | 26 | end |
25 | end | 27 | end |