Preliminary Target #new support
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user