We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a60a7b commit fe1202dCopy full SHA for fe1202d
app/models/attachment.rb
@@ -48,6 +48,7 @@ class Attachment < ActiveRecord::Base
48
:scope =>
49
proc do
50
select("#{Attachment.table_name}.*").
51
+ where(container_type: ['Version', 'Project']).
52
joins(
53
"LEFT JOIN #{Version.table_name} " \
54
"ON #{Attachment.table_name}.container_type='Version' " \
0 commit comments