Hi, I’m trying to generate some static feeds using a script in /lib that
will later call from a sidekiq worker and I need to access the URL
from my library, how can I do it?
What I tried so far is including Rails.application.routes.url_helpers in
class but it doesn’t seem to work. I’ve also tried to follow this blog
but still no success.
Does someone know how to use url helpers inside a lib?