ruby1.9: macro must accept 2 arguments.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8168 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-10 13:55:47 +00:00
parent 02893a17ad
commit b1bb26b1e0
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ module Redmine
end
desc "Displays a list of all available macros, including description if available."
macro :macro_list do
macro :macro_list do |obj, args|
out = ''
@@available_macros.keys.collect(&:to_s).sort.each do |macro|
out << content_tag('dt', content_tag('code', macro))

View File

@ -41,7 +41,7 @@ class Redmine::WikiFormatting::MacrosTest < ActionView::TestCase
def test_macro_registration
Redmine::WikiFormatting::Macros.register do
macro :foo do
macro :foo do |obj, args|
"Foo macro output"
end
end