diff options
author | Carlos Galdino + Rafael Mendonça França <rafael.franca+carlos.galdino@plataformatec.com.br> | 2012-05-14 16:22:53 -0300 |
---|---|---|
committer | Carlos Galdino + Rafael Mendonça França <rafael.franca+carlos.galdino@plataformatec.com.br> | 2012-05-14 16:43:54 -0300 |
commit | 21141e777bdce8534e3755c8de7268324b3d8714 (patch) | |
tree | 1ad186ffbba5adcd0dd5f3ba76150db3c431cf5a /actionpack/lib/action_view/helpers/form_tag_helper.rb | |
parent | 2506d4ad9e79532a0000ebd73baf0478db30f5c9 (diff) | |
download | rails-21141e777bdce8534e3755c8de7268324b3d8714.tar.gz rails-21141e777bdce8534e3755c8de7268324b3d8714.tar.bz2 rails-21141e777bdce8534e3755c8de7268324b3d8714.zip |
Deprecate `:disable_with` in favor of `'data-disable-with'` option for `button_to` and `submit_tag` helpers.
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 066b98d4a2..8ccffb4952 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -417,6 +417,8 @@ module ActionView options = options.stringify_keys if disable_with = options.delete("disable_with") + ActiveSupport::Deprecation.warn ":disable_with option is deprecated and will be removed from Rails 4.0. Use :data-disable-with instead" + options["data-disable-with"] = disable_with end |