fix rubocop

This commit is contained in:
Pete Matsyburka
2026-04-02 12:48:28 +03:00
parent bd7ad5fce8
commit eaedaa96bb
22 changed files with 37 additions and 28 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ module Submitters
ActiveRecord::Associations::Preloader.new(
records: [submitter],
associations: if with_documents
[documents_attachments: :blob, attachments_attachments: :blob]
[{ documents_attachments: :blob, attachments_attachments: :blob }]
elsif with_values
[attachments_attachments: :blob]
[{ attachments_attachments: :blob }]
end
).call
+1 -1
View File
@@ -12,7 +12,7 @@ module Submitters
def call(submitter, expires_at: Accounts.link_expires_at(Account.new(id: submitter.account_id)))
ActiveRecord::Associations::Preloader.new(
records: [submitter], associations: [documents_attachments: :blob, attachments_attachments: :blob]
records: [submitter], associations: [{ documents_attachments: :blob, attachments_attachments: :blob }]
).call
values = build_values_array(submitter, expires_at:)