aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/lib')
-rw-r--r--activestorage/lib/active_storage/attached/model.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage/attached/model.rb b/activestorage/lib/active_storage/attached/model.rb
index 1cdaac2e32..aa5c769cb8 100644
--- a/activestorage/lib/active_storage/attached/model.rb
+++ b/activestorage/lib/active_storage/attached/model.rb
@@ -132,5 +132,9 @@ module ActiveStorage
def attachment_changes #:nodoc:
@attachment_changes ||= {}
end
+
+ def reload(*) #:nodoc:
+ super.tap { @attachment_changes = nil }
+ end
end
end