From 8375e98adead5834fc8dc8fd13115b8ce268ef3b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 7 Mar 2009 12:57:16 +0000 Subject: [PATCH] Fixes that Redmine::WikiFormatting.register did not raise ArgumentError when giving name as a string (#2856). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2562 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb index 1525dbc19..294722067 100644 --- a/lib/redmine/wiki_formatting.rb +++ b/lib/redmine/wiki_formatting.rb @@ -25,7 +25,7 @@ module Redmine end def register(name, formatter, helper) - raise ArgumentError, "format name '#{name}' is already taken" if @@formatters[name] + raise ArgumentError, "format name '#{name}' is already taken" if @@formatters[name.to_sym] @@formatters[name.to_sym] = {:formatter => formatter, :helper => helper} end