Project

General

Profile

connecting with a hook

Added by Adrian P over 14 years ago

Hi everybody,

how can i connect with a hook? Anyone has an example?

I would like to add a condition to the hook: controller_timelog_edit_before_save
I created a new plugin. I need to create a .lib file with a def? and ... ?

Regards,
A.


Replies (1)

RE: connecting with a hook - Added by Thales Ferreira over 14 years ago

Hi Adrian, I know still less about hooks. But Aleksei Gusev in his plugin use hooks to issues controller.

http://github.com/hron/redmine_subtasks/blob/master/lib/redmine_subtasks/issues_controller_hooks.rb

I hope have help you.

    (1-1/1)