diff options
author | Timm <kaspth@gmail.com> | 2013-08-10 12:57:19 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:04 +0200 |
commit | b13d22bff5fedaec96a1a45400a23cd75621beb0 (patch) | |
tree | 65bec6406d1619ea314a3ab3d57617548c77064b /actionview/lib/action_view/helpers/sanitize_helper | |
parent | 39df4028a2816b96de3127d68d9c42687da4178e (diff) | |
download | rails-b13d22bff5fedaec96a1a45400a23cd75621beb0.tar.gz rails-b13d22bff5fedaec96a1a45400a23cd75621beb0.tar.bz2 rails-b13d22bff5fedaec96a1a45400a23cd75621beb0.zip |
Initialized tags and attributes to nil.
Diffstat (limited to 'actionview/lib/action_view/helpers/sanitize_helper')
-rw-r--r-- | actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb b/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb index 07611e6927..cb1a0da542 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb @@ -22,6 +22,10 @@ class PermitScrubber < Loofah::Scrubber # :nodoc: attr_reader :tags, :attributes + def initialize + @tags, @attributes = nil, nil + end + def tags=(tags) @tags = validate!(tags, :tags) end |