I don't know Ruby&Rails, but I would like to build a small custom Redmine plugin for my personal needs. And I have faced with the problem which might look quite straightforward for Ruby experts. I have two helpers (modules):
helper1
helper2
And I would like to use helper1.method1
inside of helper2.method3
.
I have tried following to achieve this:
simply call method
helper1.method1
insidehelper2.method3
, with thoughts that relations resolved automatically - didn't work;require
helper1
insidehelper2
byrequire '../../relative/path'
- didn't worked;require
helper1
insidehelper2
byrequire '../../relative/path'
- didn't worked;included
helper1
insidehelper2
- didn't worked
I have tried to find information how proper to call a method from one custom helper inside of another custom helper but didn't found any relevant results. The most of results were about how to call custom helper method inside view, controller, settings view.
So, could somebody explain to me how properly use methods from one custom helper inside of another one?
Best, regards.