1
0

Preliminary Target #new support

This commit is contained in:
cryptogopher
2020-06-27 21:52:32 +02:00
parent 1dd2e2b596
commit 0df2c6ec4f
18 changed files with 177 additions and 26 deletions

View File

@@ -5,14 +5,14 @@ class TargetsController < ApplicationController
include Concerns::Finders
before_action :find_project_by_project_id, only: [:index]
before_action :find_project_by_project_id, only: [:index, :new]
def index
prepare_targets
end
def new
@target = @project.targets.new
@target = (@goal || @project.goals.binding).targets.new
@target.arity.times { @target.thresholds.new }
end