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)
def detach_saved_attachments
saved_attachments.each do |attachment|
# TODO: use #reload instead, after upgrading to Rails 5
# (after_rollback is called when running transactional tests in Rails 4)
attachment.container = nil
attachment.reload
end
end
    (1-1/1)