We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab31281 commit 2aa316aCopy full SHA for 2aa316a
lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb
@@ -125,9 +125,7 @@ def attach_saved_attachments
125
126
def detach_saved_attachments
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
+ attachment.reload
131
end
132
133
0 commit comments