aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2017-12-21 15:32:33 -0500
committerGitHub <noreply@github.com>2017-12-21 15:32:33 -0500
commit50902e941acd3300fbc094548564610f9101e2ec (patch)
treee68483fd50f54c6ac2d5ab42d52c5ccb82d0e03a
parent3b4f14dc43f09addb50c546ffe23b9e03eafed20 (diff)
parentd8c49d88f69da01d4cedad911b2662d7c1ccdf26 (diff)
downloadrails-50902e941acd3300fbc094548564610f9101e2ec.tar.gz
rails-50902e941acd3300fbc094548564610f9101e2ec.tar.bz2
rails-50902e941acd3300fbc094548564610f9101e2ec.zip
Merge pull request #31536 from yhirano55/remove_needless_url_for
[ci skip] Remove needless from doc for ActiveStorage::Variant
-rw-r--r--activestorage/app/models/active_storage/variant.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/variant.rb b/activestorage/app/models/active_storage/variant.rb
index bdcb5e6a41..e08a2271ec 100644
--- a/activestorage/app/models/active_storage/variant.rb
+++ b/activestorage/app/models/active_storage/variant.rb
@@ -18,7 +18,7 @@ require "active_storage/downloading"
# To refer to such a delayed on-demand variant, simply link to the variant through the resolved route provided
# by Active Storage like so:
#
-# <%= image_tag url_for(Current.user.avatar.variant(resize: "100x100")) %>
+# <%= image_tag Current.user.avatar.variant(resize: "100x100") %>
#
# This will create a URL for that specific blob with that specific variant, which the ActiveStorage::VariantsController
# can then produce on-demand.