From d4d13925d3c0510ac6a08d1478e47d2135864ac6 Mon Sep 17 00:00:00 2001 From: Timm Date: Tue, 2 Jul 2013 13:47:24 +0200 Subject: Removed duplication in the deprecated methods. --- .../lib/action_view/helpers/sanitize_helper/sanitizers.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb b/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb index 74be525581..91de4c8ba1 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb @@ -40,15 +40,15 @@ module ActionView end def protocol_separator - ActiveSupport::Deprecation.warn('protocol_separator has been deprecated and has no effect.') + self.class.protocol_separator end def protocol_separator=(value) - ActiveSupport::Deprecation.warn('protocol_separator= has been deprecated and has no effect.') + self.class.protocol_separator end def bad_tags - ActiveSupport::Deprecation.warn('bad_tags has been deprecated and has no effect.') + self.class.bad_tags end class << self @@ -57,11 +57,11 @@ module ActionView end def protocol_separator=(value) - ActiveSupport::Deprecation.warn('protocol_separator= has been deprecated and has no effect.') + protocol_separator end def bad_tags - ActiveSupport::Deprecation.warn('The bad_tags class attribute has been deprecated and has no effect. You can still affect the tags being sanitized using bad_tags= which changes the allowed_tags.') + ActiveSupport::Deprecation.warn('bad_tags has been deprecated and has no effect. You can still affect the tags being sanitized using ActionView::WhiteListSanitizer.bad_tags= which changes the allowed_tags.') end def bad_tags=(tags) -- cgit v1.2.3