Patch #37057 » attachment2.patch
app/models/attachment.rb | ||
---|---|---|
66 | 66 |
:scope => |
67 | 67 |
proc do |
68 | 68 |
select("#{Attachment.table_name}.*"). |
69 |
where(container_type: 'Document'). |
|
69 | 70 |
joins( |
70 | 71 |
"LEFT JOIN #{Document.table_name} " \ |
71 | 72 |
"ON #{Attachment.table_name}.container_type='Document' " \ |