diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 4d6367e66a..2a1dd86e0a 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -577,8 +577,8 @@ module ActionView method = html_options.delete('method') if confirm - message = ":confirm option is deprecated and will be removed from Rails 4.1. " / - "Use ':data => { :confirm => \'Text\' }' instead." + message = ":confirm option is deprecated and will be removed from Rails 4.1. " \ + "Use 'data: { confirm: \'Text\' }' instead." ActiveSupport::Deprecation.warn(message, caller) html_options["data-confirm"] = confirm @@ -587,8 +587,8 @@ module ActionView add_method_to_attributes!(html_options, method) if method if disable_with - message = ":disable_with option is deprecated and will be removed from Rails 4.1. " / - "Use ':data => { :disable_with => \'Text\' }' instead." + 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) html_options["data-disable-with"] = disable_with |