Patch #37057 » 37057.patch
| app/models/attachment.rb | ||
|---|---|---|
| 48 | 48 | :scope => | 
| 49 | 49 | proc do | 
| 50 | 50 |         select("#{Attachment.table_name}.*"). | 
| 51 | where(container_type: ['Version', 'Project']). | |
| 51 | 52 | joins( | 
| 52 | 53 |             "LEFT JOIN #{Version.table_name} " \ | 
| 53 | 54 |               "ON #{Attachment.table_name}.container_type='Version' " \ | 
| ... | ... | |
| 66 | 67 | :scope => | 
| 67 | 68 | proc do | 
| 68 | 69 |         select("#{Attachment.table_name}.*"). | 
| 70 | where(container_type: 'Document'). | |
| 69 | 71 | joins( | 
| 70 | 72 |             "LEFT JOIN #{Document.table_name} " \ | 
| 71 | 73 |             "ON #{Attachment.table_name}.container_type='Document' " \ | 
- « Previous
- 1
- 2
- 3
- Next »