diff options
author | Andrew White <andrew.white@unboxed.co> | 2018-03-14 11:18:06 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2018-03-14 11:18:06 +0000 |
commit | ae7a57209d0a2365a6e90684e45d55b7de78101d (patch) | |
tree | e8cdf75111897eb3b4ada89130c002445647f134 /actionview/lib | |
parent | a489cc81b6aa1187b169ddccc92f4c077fe0408f (diff) | |
download | rails-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.rb | 3 |
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. |