diff options
-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 |