diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-02-17 10:03:36 +0100 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-02-17 10:03:36 +0100 |
commit | 521b7c9fae8d4def438ee8f08d6ed9d80125a09a (patch) | |
tree | c08daddb1076e9bad9f320f84701583641a604c4 | |
parent | 727a3ff2809afcfbdc22439866a7714190e753de (diff) |
fix copy paste error
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 017ed7c..b66c828 100644 --- a/application.rb +++ b/application.rb @@ -58,7 +58,7 @@ put '/:id/:status/?' do when /cancelled|failed/ Process.kill(9,task.pid) unless task.pid.nil? task.pid = nil - RestClient.put url_for("/#{self.parent.id}/#{params[:status]}"), {} unless self.parent.nil? # recursevly kill parent tasks + RestClient.put url_for("/#{task.parent.id}/#{params[:status]}"), {} unless task.parent.nil? # recursevly kill parent tasks end task.save end |