Patch #4878
More Hook Features
| Status: | Resolved | Start date: | 2010-02-18 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Plugin API | |||
| Target version: | - |
Description
Hi!
I added some features to hook.rb:
- cleaned-up
call_hook
- added an
:ifoption torender_on, so you can write:render_on :view_issues_form_details_bottom, :partial => "test", :if => :really?
- added
render_to_stringtoActionMailersocall_hookcan also be called from the mail templates inapp/views/mailer
Unfortunately I didn't manage to write the matching test for @hook_test.rb" so far.
History
#1 Updated by Jean-Philippe Lang over 2 years ago
- Category set to Plugin API
#2 Updated by Eric Davis over 1 year 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
