From b13d22bff5fedaec96a1a45400a23cd75621beb0 Mon Sep 17 00:00:00 2001 From: Timm Date: Sat, 10 Aug 2013 12:57:19 +0200 Subject: Initialized tags and attributes to nil. --- actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb') 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 -- cgit v1.2.3