adjust submitter edit

This commit is contained in:
Pete Matsyburka authored and Oleksandr Turchyn committed 2024-10-14 12:28:26 +03:00
1 parent e0a297cf81
commit d6474f0e6e
8 files changed
+105 -101

No files matched your search

@@ -9,6 +9,13 @@ class SubmissionsController < ApplicationController
def show
@submission = Submissions.preload_with_pages(@submission)
unless @submission.submitters.all?(&:completed_at?)
ActiveRecord::Associations::Preloader.new(
records: [@submission],
associations: [submitters: :start_form_submission_events]
).call
end
render :show, layout: 'plain'
end