Project

General

Profile

Patch #37057 » attachment2.patch

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

View differences:

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' " \
(2-2/3)