This commit is contained in:
risk
2011-07-21 16:19:48 -07:00
parent c9c7db5a53
commit 7e12de0087
+4
View File
@@ -66,10 +66,14 @@ module Gollum
end
end
# Gets the default markup class used by all instances of this Wiki.
# Kept for backwards compatibility until Gollum v2.x
def markup_class
markup_classes[:default]
end
# Sets the default markup class used by all instances of this Wiki.
# Kept for backwards compatibility until Gollum v2.x
def markup_class=(default)
new_classes = Hash.new default
@markup_classes = Hash.new(default).update(markup_classes)