From 2a7f13ebf8cc27e0d0fa19cc737c9c2ecea3040e Mon Sep 17 00:00:00 2001 From: Timm Date: Sun, 13 Oct 2013 21:39:16 +0200 Subject: Made deprecation messages in sanitize_helper more clear. --- actionview/lib/action_view/helpers/sanitize_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionview') diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb index 13f946efa0..6e66a43a37 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper.rb @@ -122,7 +122,7 @@ module ActionView attr_writer :full_sanitizer, :link_sanitizer, :white_list_sanitizer def sanitized_protocol_separator - ActiveSupport::Deprecation.warn('protocol_separator has been deprecated and has no effect.') + ActiveSupport::Deprecation.warn('sanitized_protocol_separator is deprecated and has no effect.') end def sanitized_uri_attributes @@ -130,7 +130,7 @@ module ActionView end def sanitized_bad_tags - ActiveSupport::Deprecation.warn('bad_tags has been deprecated and has no effect. You can still affect the tags being sanitized using Rails::Html::WhiteListSanitizer.bad_tags= which changes the allowed_tags.') + ActiveSupport::Deprecation.warn('sanitized_bad_tags is deprecated and has no effect. Affect the sanitized_allowed_tags using sanitized_bad_tags= instead.') end def sanitized_allowed_tags @@ -192,7 +192,7 @@ module ActionView def sanitized_protocol_separator=(value) - ActiveSupport::Deprecation.warn('protocol_separator= has been deprecated and has no effect.') + ActiveSupport::Deprecation.warn('sanitized_protocol_separator= is deprecated and has no effect.') end # Adds valid HTML attributes that the +sanitize+ helper checks for URIs. -- cgit v1.2.3