Permalink
Browse files

Assign task_list when showing task if using the short route

  • Loading branch information...
jamesu committed Oct 5, 2011
1 parent 4d527ab commit f68c3b0783fc04aa03cf63a62bc2f95ca1bd07a9
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/tasks_controller.rb
@@ -49,6 +49,7 @@ def index
def show
begin
@task = (@task_list||@active_project).tasks.find(params[:id])
+ @task_list ||= @task.task_list
rescue
return error_status(true, :invalid_task)
end

0 comments on commit f68c3b0

Please sign in to comment.