RE: How to get a string from Proc.new » menu_manager_r3625.patch
| 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
|
||