RE: How to get a string from Proc.new » menu_manager_r3625.patch
| lib/redmine/menu_manager.rb (working copy) | ||
|---|---|---|
| 267 | 267 |
project.nil? ? item.url : {item.param => project}.merge(item.url)
|
| 268 | 268 |
when Symbol |
| 269 | 269 |
send(item.url) |
| 270 |
when Proc # added by Tide to allow passing a proc as the url |
|
| 271 |
item.url.call(project).to_s # added by Tide to allow passing a proc as the url |
|
| 270 | 272 |
else |
| 271 | 273 |
item.url |
| 272 | 274 |
end |