fix rubocop
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:)
|
||||
|
||||
Reference in New Issue
Block a user