diff options
author | Alexey Gaziev <alex.gaziev@gmail.com> | 2012-10-30 10:23:41 +0800 |
---|---|---|
committer | Alexey Gaziev <alex.gaziev@gmail.com> | 2012-10-30 10:23:41 +0800 |
commit | b955939d55b71905fa3e5036149ee4c84943c599 (patch) | |
tree | faceebca94859de69e12f4d7b48e9958b1631575 /actionpack/lib/action_view/helpers/url_helper.rb | |
parent | 4e23c0ef341c2cba6a4b21022d4ffbabdaa6e3da (diff) | |
download | rails-b955939d55b71905fa3e5036149ee4c84943c599.tar.gz rails-b955939d55b71905fa3e5036149ee4c84943c599.tar.bz2 rails-b955939d55b71905fa3e5036149ee4c84943c599.zip |
Make caller attribute in deprecation methods optional
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 2a1dd86e0a..48ac4312b6 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -579,7 +579,7 @@ module ActionView if confirm message = ":confirm option is deprecated and will be removed from Rails 4.1. " \ "Use 'data: { confirm: \'Text\' }' instead." - ActiveSupport::Deprecation.warn(message, caller) + ActiveSupport::Deprecation.warn message html_options["data-confirm"] = confirm end @@ -589,7 +589,7 @@ module ActionView if disable_with message = ":disable_with option is deprecated and will be removed from Rails 4.1. " \ "Use 'data: { disable_with: \'Text\' }' instead." - ActiveSupport::Deprecation.warn(message, caller) + ActiveSupport::Deprecation.warn message html_options["data-disable-with"] = disable_with end |