attachment2.patch

Pavel Rosick√Ĺ, 2022-04-28 18:21

Download (493 Bytes)

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' " \