Patch #37057 » 37057.patch
| app/models/attachment.rb | ||
|---|---|---|
|
:scope =>
|
||
|
proc do
|
||
|
select("#{Attachment.table_name}.*").
|
||
|
where(container_type: ['Version', 'Project']).
|
||
|
joins(
|
||
|
"LEFT JOIN #{Version.table_name} " \
|
||
|
"ON #{Attachment.table_name}.container_type='Version' " \
|
||
| ... | ... | |
|
:scope =>
|
||
|
proc do
|
||
|
select("#{Attachment.table_name}.*").
|
||
|
where(container_type: 'Document').
|
||
|
joins(
|
||
|
"LEFT JOIN #{Document.table_name} " \
|
||
|
"ON #{Attachment.table_name}.container_type='Document' " \
|
||
- « Previous
- 1
- 2
- 3
- Next »