Skip to content

Commit

Permalink
Assign task_list when showing task if using the short route
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesu committed Oct 5, 2011
1 parent 4d527ab commit f68c3b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f68c3b0

Please sign in to comment.