Project

General

Profile

Actions

Patch #4878

open

More Hook Features

Added by Thomas Löber about 14 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2010-02-18
Due date:
% Done:

0%

Estimated time:

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.


Files

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

Updated by Jean-Philippe Lang about 14 years ago

  • Category set to Plugin API
Actions #2

Updated by Eric Davis about 13 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

Actions #3

Updated by calogero bonasia almost 13 years ago

  • Status changed from New to Resolved

test

Actions #4

Updated by billy kid over 11 years ago

-

Actions #5

Updated by Etienne Massip over 11 years ago

  • Status changed from Resolved to New
Actions #6

Updated by Thomas Löber about 1 year ago

  • Status changed from New to Resolved

Closing 13-year-old ticket.

Actions

Also available in: Atom PDF