Patch #4878

More Hook Features

Added by Thomas Löber over 9 years ago. Updated almost 7 years ago.

Status:NewStart date:2010-02-18
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:-

Description

Hi!

I added some features to hook.rb:

  • cleaned-up call_hook
  • added an :if option to render_on, so you can write:
     render_on :view_issues_form_details_bottom, :partial => "test", :if => :really?
  • added render_to_string to ActionMailer so call_hook can also be called from the mail templates in app/views/mailer

Unfortunately I didn't manage to write the matching test for @hook_test.rb" so far.

hook.patch Magnifier - Patch for hook.rb (1.78 KB) Thomas Löber, 2010-02-18 18:28

History

#1 Updated by Jean-Philippe Lang over 9 years ago

  • Category set to Plugin API

#2 Updated by Eric Davis over 8 years ago

  • Assignee deleted (Eric Davis)

I am stepping down from working on Redmine. If someone else is interesting in working on this issue, feel free to reassign it to them.

Eric Davis

#3 Updated by calogero bonasia about 8 years ago

  • Status changed from New to Resolved

test

#4 Updated by billy kid almost 7 years ago

-

#5 Updated by Etienne Massip almost 7 years ago

  • Status changed from Resolved to New

Also available in: Atom PDF