What's the preferred way to use helper methods in Ruby?
- by DR
Disclaimer: Although I'm asking in context of a Rails application, I'm not talking about Rails helpers (i.e. view helpers)
Let's say I have a helper method/function:
def dispatch_job(job = {})
#Do something
end
Now I want to use this from several places (mostly controllers, but also a few BackgrounDRb workers)
What's the preferred way to do…