Mercurial > hg > soundsoftware-site
diff plugins/redmine_checkout/lib/checkout/repository_hooks.rb @ 1318:9c2a5a4514a8 redmine-2.2-integration
Merge
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 18 Jun 2013 17:36:47 +0100 |
parents | 12556ba57d17 |
children |
line wrap: on
line diff
--- a/plugins/redmine_checkout/lib/checkout/repository_hooks.rb Tue Jun 18 17:34:56 2013 +0100 +++ b/plugins/redmine_checkout/lib/checkout/repository_hooks.rb Tue Jun 18 17:36:47 2013 +0100 @@ -27,8 +27,14 @@ }) options = {:partial => "redmine_checkout_hooks/view_repositories_show_contextual"} - context[:controller].send(:render_to_string, {:locals => context}.merge(options)) + + # cc: cribbed from + # http://www.redmine.org/projects/redmine/repository/revisions/9785/diff/trunk/lib/redmine/hook.rb + # for http://www.redmine.org/issues/11105 (formerly used + # render_to_string on this controller, wasn't working for + # :header_tags) + context[:hook_caller].send(:render, {:locals => context}.merge(options)) end end end -end \ No newline at end of file +end