aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models/active_storage/variant.rb
diff options
context:
space:
mode:
authorJanko Marohnić <janko.marohnic@gmail.com>2018-04-23 12:24:26 +0200
committerJanko Marohnić <janko.marohnic@gmail.com>2018-04-23 12:24:26 +0200
commite40091648b9fa3c75511422c5dc8d83bfe99421e (patch)
treea9aecac6966b31c17fc12197db9982c2b2a65d09 /activestorage/app/models/active_storage/variant.rb
parent7fc8b6d82cd82440558664e4f2d82d6933d4cba3 (diff)
downloadrails-e40091648b9fa3c75511422c5dc8d83bfe99421e.tar.gz
rails-e40091648b9fa3c75511422c5dc8d83bfe99421e.tar.bz2
rails-e40091648b9fa3c75511422c5dc8d83bfe99421e.zip
Remove warning that image will be loaded into memory
This is not true anymore, the image will be downloaded into a temporary file in a streaming fashion.
Diffstat (limited to 'activestorage/app/models/active_storage/variant.rb')
-rw-r--r--activestorage/app/models/active_storage/variant.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activestorage/app/models/active_storage/variant.rb b/activestorage/app/models/active_storage/variant.rb
index b880b8fbff..fcc831ee34 100644
--- a/activestorage/app/models/active_storage/variant.rb
+++ b/activestorage/app/models/active_storage/variant.rb
@@ -19,10 +19,10 @@ require "active_storage/downloading"
# Rails.application.config.active_storage.variant_processor = :vips
# # => :vips
#
-# Note that to create a variant it's necessary to download the entire blob file from the service. The larger
-# the image, the more memory is used. Because of this process, you also want to be considerate about when the variant
-# is actually processed. You shouldn't be processing variants inline in a template, for example. Delay the processing
-# to an on-demand controller, like the one provided in ActiveStorage::RepresentationsController.
+# Note that to create a variant it's necessary to download the entire blob file from the service. Because of this process,
+# you also want to be considerate about when the variant is actually processed. You shouldn't be processing variants inline
+# in a template, for example. Delay the processing to an on-demand controller, like the one provided in
+# ActiveStorage::RepresentationsController.
#
# To refer to such a delayed on-demand variant, simply link to the variant through the resolved route provided
# by Active Storage like so: