Project

General

Profile

RE: How to get a string from Proc.new » menu_manager_r3625.patch

Tide _, 2010-04-05 17:13

View differences:

lib/redmine/menu_manager.rb (working copy)
project.nil? ? item.url : {item.param => project}.merge(item.url)
when Symbol
send(item.url)
when Proc # added by Tide to allow passing a proc as the url
item.url.call(project).to_s # added by Tide to allow passing a proc as the url
else
item.url
end
(1-1/2)