Mercurial > hg > soundsoftware-site
diff lib/redmine/wiki_formatting/macros.rb @ 1294:3e4c3460b6ca redmine-2.2
Update to Redmine SVN revision 11972 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:01:12 +0100 |
parents | 433d4f72a19b |
children | 622f24f53b42 |
line wrap: on
line diff
--- a/lib/redmine/wiki_formatting/macros.rb Mon Jan 07 12:01:42 2013 +0000 +++ b/lib/redmine/wiki_formatting/macros.rb Fri Jun 14 09:01:12 2013 +0100 @@ -147,10 +147,10 @@ unless block_given? raise "Can not create a macro without a block!" end - name = name.to_sym if name.is_a?(String) + name = name.to_s.downcase.to_sym available_macros[name] = {:desc => @@desc || ''}.merge(options) @@desc = nil - Definitions.send :define_method, "macro_#{name}".downcase, &block + Definitions.send :define_method, "macro_#{name}", &block end # Sets description for the next macro to be defined