]> source.dussan.org Git - redmine.git/commitdiff
Use the accessor.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 8 Aug 2012 16:35:25 +0000 (16:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 8 Aug 2012 16:35:25 +0000 (16:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10175 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/macros.rb

index 7647c7a938da0dc3078456ebab295c988a10fd8c..708e2280a0d77602193518abe21efdc623640474 100644 (file)
@@ -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