Patch #32922 » acts_as_attachable.rb.patch
| 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
|
||