Project

General

Profile

Development: How can I use own functions in hooks partial

Added by Thomas Koch about 8 years ago

I am writing a Little plugin to add some information to my Issue view using the view_issues_show_details_bottom-hook.

Right now I require my hook via init.rb. This hooks calls a partial view. I would love to call Controller or helper functions from my plugin in this view or with this hook.

How may I be able to include some helper function into my hook-view?

So far my only solution is to define my function in the view or to extend Issue-Class with an extra method.
(my code: https://github.com/braini75/redmine_inherit_issue)

I appreciate any hint!