title: Use Rails path helpers from inside an plain old ruby class? (Resque job)
body: <p>I need to make some API calls from inside a Resque job (which is just a plain old Ruby class) and those API calls need to include URLs to resources on my site.</p>
  
  <p>Is it "correct" to just add this to my class definition?</p>
  
  <pre><code>include Rails.application.routes.url_helpers
  </code></pre>
  
  <p>Or is there an "expected" way to do this?</p>