From 9553325ee3827b258b0f347295043771b7a22dfa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 8 Aug 2012 16:35:25 +0000 Subject: [PATCH] Use the accessor. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10175 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/wiki_formatting/macros.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/wiki_formatting/macros.rb b/lib/redmine/wiki_formatting/macros.rb index 7647c7a93..708e2280a 100644 --- a/lib/redmine/wiki_formatting/macros.rb +++ b/lib/redmine/wiki_formatting/macros.rb @@ -82,7 +82,7 @@ module Redmine # end def macro(name, options={}, &block) name = name.to_sym if name.is_a?(String) - @@available_macros[name] = {:desc => @@desc || ''}.merge(options) + available_macros[name] = {:desc => @@desc || ''}.merge(options) @@desc = nil raise "Can not create a macro without a block!" unless block_given? Definitions.send :define_method, "macro_#{name}".downcase, &block