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