diff options
author | Timm <kaspth@gmail.com> | 2013-10-13 21:39:16 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:21 +0200 |
commit | 2a7f13ebf8cc27e0d0fa19cc737c9c2ecea3040e (patch) | |
tree | 25dea600df81e0220430cdc3c119a7d5e5fae519 /actionview | |
parent | 65d04439128d54558df7b1587d9d84a49a2137dd (diff) | |
download | rails-2a7f13ebf8cc27e0d0fa19cc737c9c2ecea3040e.tar.gz rails-2a7f13ebf8cc27e0d0fa19cc737c9c2ecea3040e.tar.bz2 rails-2a7f13ebf8cc27e0d0fa19cc737c9c2ecea3040e.zip |
Made deprecation messages in sanitize_helper more clear.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/sanitize_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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. |