diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-10-13 20:10:17 +0300 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-10-13 20:10:17 +0300 |
commit | 335d26ea0ebd622ad5e884aab7879de05007505e (patch) | |
tree | aba8295bbcee0a232345946fe03f166cf9d01895 | |
parent | 7204617df893ffd4cf46412013533740c37dcab2 (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.rb | 2 |
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) |