Skip to content

Commit

Permalink
add meteorite to tasks#destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
llawlor committed Jul 1, 2015
1 parent f5a4e21 commit abfb76d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def destroy
task = Task.find(params[:id])
# destroy the task
task.destroy
# push to redis
$redis.publish(Meteorite.bind_key(task), 'delete')
# blank response
head :ok
end
Expand Down

0 comments on commit abfb76d

Please sign in to comment.