Commit 8512674f250eb38cc198ea8073a3b83ebd8a7334
1 parent
99342898
Exists in
master
and in
29 other branches
ActionItem280: marking TODO to remove ugly hacks
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1686 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
3 additions
and
0 deletions
Show diff stats
app/models/change_password.rb
1 | 1 | # TODO: send an e-mail with a hash code to the task after the ChangePassword is creatd -> override messages from #Task |
2 | 2 | |
3 | +# FIXME remove this workaround | |
3 | 4 | class HumanName |
4 | 5 | def human_name |
5 | 6 | @name |
... | ... | @@ -16,6 +17,7 @@ class ChangePassword < Task |
16 | 17 | self[:data] ||= {} |
17 | 18 | end |
18 | 19 | |
20 | + # FIXME ugly workaround | |
19 | 21 | self.columns_hash['login'] = HumanName.new _('Username') |
20 | 22 | self.columns_hash['email'] = HumanName.new _('e-Mail') |
21 | 23 | ... | ... |
app/models/user.rb