Commit 803c9d4cc5e5cb6b80a46f03aa90d9de8e6c1997
1 parent
ceea05c8
Exists in
master
and in
28 other branches
ActionItem96: changing ChangePassword to cope with the new interface for tasks
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@688 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/models/change_password.rb
| ... | ... | @@ -61,15 +61,15 @@ class ChangePassword < Task |
| 61 | 61 | |
| 62 | 62 | # overriding messages |
| 63 | 63 | |
| 64 | - def cancel_message | |
| 64 | + def task_cancelled_message | |
| 65 | 65 | _('Your password change request was cancelled at %s.') % Time.now.to_s |
| 66 | 66 | end |
| 67 | 67 | |
| 68 | - def finish_message | |
| 68 | + def task_finished_message | |
| 69 | 69 | _('Your password was changed successfully.') |
| 70 | 70 | end |
| 71 | 71 | |
| 72 | - def create_message | |
| 72 | + def task_created_message | |
| 73 | 73 | hostname = self.requestor.environment.default_hostname |
| 74 | 74 | code = self.code |
| 75 | 75 | url = generate_url(:host => hostname, :controller => 'account', :action => 'new_password', :code => code) | ... | ... |