Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-10-13 20:10:17 +0300
committerTaylor Blau <me@ttaylorr.com>2022-10-13 20:10:17 +0300
commit335d26ea0ebd622ad5e884aab7879de05007505e (patch)
treeaba8295bbcee0a232345946fe03f166cf9d01895
parent7204617df893ffd4cf46412013533740c37dcab2 (diff)
app/helpers/application_helper.rb: fix broken `#image_tag`
We use the `#image_tag` helper to bypass the asset pipeline machinery in Rails's own `#image_tag`. But Rails no longer spells `tag.img(...)` as such, instead, it writes `tag("img", ...)`. Update our own helper to reflect the change upstream. Signed-off-by: Taylor Blau <me@ttaylorr.com>
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index a9583995..48cbdca0 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -50,7 +50,7 @@ module ApplicationHelper
options[:src] = "/images/#{image}"
- tag.img(options)
+ tag("img", options)
end
def banner_duration(duration)