diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-05 11:42:19 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-05 11:42:19 -0700 |
commit | 634755410991419bab9048f81279bd6a48d7f6b4 (patch) | |
tree | 7b4181b267ec8bfe0f07eee77c2f496d122cf5a3 /actionpack/lib/action_view/helpers/form_tag_helper.rb | |
parent | 9f52d1526c816a35ec7bcc6e85f27b51d010dbae (diff) | |
parent | fc092a9cba5fceec38358072e50e09250cf58840 (diff) | |
download | rails-634755410991419bab9048f81279bd6a48d7f6b4.tar.gz rails-634755410991419bab9048f81279bd6a48d7f6b4.tar.bz2 rails-634755410991419bab9048f81279bd6a48d7f6b4.zip |
Merge pull request #6613 from carlosgaldino/3-2-data-confirm
Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` option
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 6 |
1 files changed, 6 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 3d3ae44eb4..ef278939d1 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -423,6 +423,8 @@ module ActionView end if confirm = options.delete("confirm") + ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead" + options["data-confirm"] = confirm end @@ -475,6 +477,8 @@ module ActionView end if confirm = options.delete("confirm") + ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead" + options["data-confirm"] = confirm end @@ -510,6 +514,8 @@ module ActionView options = options.stringify_keys if confirm = options.delete("confirm") + ActiveSupport::Deprecation.warn ":confirm option is deprecated and will be removed from Rails 4.0. Use ':data => { :confirm => \'Text\' }' instead" + options["data-confirm"] = confirm end |