Project

General

Profile

Patch #32922 » acts_as_attachable.rb.patch

Pavel Rosický, 2020-01-30 00:56

View differences:

acts_as_attachable.rb (working copy)
125 125

  
126 126
        def detach_saved_attachments
127 127
          saved_attachments.each do |attachment|
128
            # TODO: use #reload instead, after upgrading to Rails 5
129
            # (after_rollback is called when running transactional tests in Rails 4)
130
            attachment.container = nil
128
            attachment.reload
131 129
          end
132 130
        end
133 131

  
    (1-1/1)