comparison 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
comparison
equal deleted inserted replaced
1317:2805873c0147 1318:9c2a5a4514a8
25 :default_protocol => default, 25 :default_protocol => default,
26 :checkout_path => path 26 :checkout_path => path
27 }) 27 })
28 28
29 options = {:partial => "redmine_checkout_hooks/view_repositories_show_contextual"} 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 end 37 end
32 end 38 end
33 end 39 end
34 end 40 end