Revision 1315:12556ba57d17 plugins/redmine_checkout/lib
| plugins/redmine_checkout/lib/checkout/repository_hooks.rb | ||
|---|---|---|
| 27 | 27 |
}) |
| 28 | 28 |
|
| 29 | 29 |
options = {:partial => "redmine_checkout_hooks/view_repositories_show_contextual"}
|
| 30 |
context[:controller].send(:render_to_string, {:locals => context}.merge(options))
|
|
| 30 |
|
|
| 31 |
# cc: cribbed from |
|
| 32 |
# http://www.redmine.org/projects/redmine/repository/revisions/9785/diff/trunk/lib/redmine/hook.rb |
|
| 33 |
# for http://www.redmine.org/issues/11105 (formerly used |
|
| 34 |
# render_to_string on this controller, wasn't working for |
|
| 35 |
# :header_tags) |
|
| 36 |
context[:hook_caller].send(:render, {:locals => context}.merge(options))
|
|
| 31 | 37 |
end |
| 32 | 38 |
end |
| 33 | 39 |
end |
| 34 |
end |
|
| 40 |
end |
|
Also available in: Unified diff