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
def initialize
@elements = ELEMENTS
@attributes = ATTRIBUTES
@protocols = PROTOCOLS
@transformers = TRANSFORMERS
@elements = ELEMENTS.dup
@attributes = ATTRIBUTES.dup
@protocols = PROTOCOLS.dup
@transformers = TRANSFORMERS.dup
@add_attributes = {}
@remove_contents = REMOVE_CONTENTS
@remove_contents = REMOVE_CONTENTS.dup
@allow_comments = false
@id_prefix = 'wiki-'
yield self if block_given?