Project

General

Profile

Patch #37057 » attachment2.patch

Pavel Rosický, 2022-04-28 18:21

View differences:

app/models/attachment.rb
:scope =>
proc do
select("#{Attachment.table_name}.*").
where(container_type: 'Document').
joins(
"LEFT JOIN #{Document.table_name} " \
"ON #{Attachment.table_name}.container_type='Document' " \
(2-2/3)