dupe sanitization attrs initialized by constants, fixes #200
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
Reference in New Issue
Block a user