aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-07-02 13:47:24 +0200
committerTimm <kaspth@gmail.com>2014-06-15 23:35:24 +0200
commitd4d13925d3c0510ac6a08d1478e47d2135864ac6 (patch)
treed71d1ddfe72d3e3c95081cdf89ed65b4767e2da2
parentc94e24fbe7bcdf605cafcfabdf97454d1e1e0685 (diff)
downloadrails-d4d13925d3c0510ac6a08d1478e47d2135864ac6.tar.gz
rails-d4d13925d3c0510ac6a08d1478e47d2135864ac6.tar.bz2
rails-d4d13925d3c0510ac6a08d1478e47d2135864ac6.zip
Removed duplication in the deprecated methods.
-rw-r--r--actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb10
1 files 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)