aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/attached/changes/create_many.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/lib/active_storage/attached/changes/create_many.rb')
-rw-r--r--activestorage/lib/active_storage/attached/changes/create_many.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activestorage/lib/active_storage/attached/changes/create_many.rb b/activestorage/lib/active_storage/attached/changes/create_many.rb
index 3f7ca6a25f..af19328a61 100644
--- a/activestorage/lib/active_storage/attached/changes/create_many.rb
+++ b/activestorage/lib/active_storage/attached/changes/create_many.rb
@@ -12,6 +12,10 @@ module ActiveStorage
@attachments ||= subchanges.collect(&:attachment)
end
+ def blobs
+ @blobs ||= subchanges.collect(&:blob)
+ end
+
def upload
subchanges.each(&:upload)
end