1
0

Test pass: test_edit

This commit is contained in:
cryptogopher
2021-01-24 15:05:54 +01:00
parent 8bd102f8de
commit cb4c528908
6 changed files with 53 additions and 4 deletions

View File

@@ -53,7 +53,8 @@ class TargetsController < ApplicationController
end
def edit
@targets = @goal.targets.where(effective_from: params[:effective_from])
@targets = @goal.targets.where(effective_from: params[:date]).to_a
@effective_from = @targets.first&.effective_from
end
def update