dupe sanitization attrs initialized by constants, fixes #200

This commit is contained in:
Corey Donohoe
2012-05-06 12:07:41 -07:00
parent 9a1dddaccf
commit 9644d4b00e
+5 -5
View File
@@ -120,12 +120,12 @@ module Gollum
attr_writer :allow_comments attr_writer :allow_comments
def initialize def initialize
@elements = ELEMENTS @elements = ELEMENTS.dup
@attributes = ATTRIBUTES @attributes = ATTRIBUTES.dup
@protocols = PROTOCOLS @protocols = PROTOCOLS.dup
@transformers = TRANSFORMERS @transformers = TRANSFORMERS.dup
@add_attributes = {} @add_attributes = {}
@remove_contents = REMOVE_CONTENTS @remove_contents = REMOVE_CONTENTS.dup
@allow_comments = false @allow_comments = false
@id_prefix = 'wiki-' @id_prefix = 'wiki-'
yield self if block_given? yield self if block_given?