@ -28,7 +28,6 @@ class CaseLogsController < ApplicationController
def create
case_log = CaseLog.new(case_log_params)
case_log.form.current_user = current_user
respond_to do |format|
format.html do
case_log.save!
@ -62,7 +61,6 @@ class CaseLogsController < ApplicationController
format.html { edit }
format.json do
if @case_log
@case_log.form.current_user = current_user
render json: @case_log, status: :ok
else
render_not_found_json("Log", params[:id])
@ -25,7 +25,6 @@ class FormController < ApplicationController
current_url = request.env["PATH_INFO"]
subsection = @case_log.form.get_subsection(current_url.split("/")[-2])
render "form/check_answers", locals: { subsection: }
render_not_found
@ -2,7 +2,6 @@ class Form
attr_reader :form_definition, :sections, :subsections, :pages, :questions,
:start_date, :end_date, :type, :name, :setup_definition,
:setup_sections, :form_sections
attr_accessor :current_user
include Form::Setup