Removed unecessary weekly task templates.
This commit is contained in:
parent
f34c307540
commit
d0e04a05ec
2 changed files with 4 additions and 42 deletions
|
|
@ -12,12 +12,7 @@ class TasksController < ApplicationController
|
|||
end
|
||||
|
||||
def new
|
||||
if params[:id]
|
||||
group = Workgroup.find(params[:id])
|
||||
@task = group.tasks.build(group.task_attributes(group.next_weekly_tasks[params[:task_from_now].to_i]))
|
||||
else
|
||||
@task = Task.new
|
||||
end
|
||||
@task = Task.new
|
||||
end
|
||||
|
||||
def create
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue