aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2018-03-14 11:18:06 +0000
committerAndrew White <andrew.white@unboxed.co>2018-03-14 11:18:06 +0000
commitae7a57209d0a2365a6e90684e45d55b7de78101d (patch)
treee8cdf75111897eb3b4ada89130c002445647f134 /actionview/lib
parenta489cc81b6aa1187b169ddccc92f4c077fe0408f (diff)
downloadrails-ae7a57209d0a2365a6e90684e45d55b7de78101d.tar.gz
rails-ae7a57209d0a2365a6e90684e45d55b7de78101d.tar.bz2
rails-ae7a57209d0a2365a6e90684e45d55b7de78101d.zip
Pass the skip_pipeline option in image_submit_tag
Fixes #32248.
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/helpers/form_tag_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb
index 5a8b8555a0..54f82e058e 100644
--- a/actionview/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionview/lib/action_view/helpers/form_tag_helper.rb
@@ -551,7 +551,8 @@ module ActionView
# # => <input src="/assets/save.png" data-confirm="Are you sure?" type="image" />
def image_submit_tag(source, options = {})
options = options.stringify_keys
- tag :input, { "type" => "image", "src" => path_to_image(source) }.update(options)
+ src = path_to_image(source, skip_pipeline: options.delete("skip_pipeline"))
+ tag :input, { "type" => "image", "src" => src }.update(options)
end
# Creates a field set for grouping HTML form elements.