mbleigh / subdomain-fu

A new plugin approach to attempting to solve the usage of subdomains in linking and routing in Rails projects.
http://rdoc.info/projects/mbleigh/subdomain-fu
Other
586 stars 118 forks source link

Failure when generating links in background jobs #23

Open key88sf opened 13 years ago

key88sf commented 13 years ago

I have some emails which are generated with delayed jobs, so there is no actual request at the time the emails are created. However they have many calls to generate links such as new_user_url(...), etc. All of these fails because there is no request.

It would be nice to be able to set a "fake" subdomain which is used during the processing of these jobs so any calls to url_for functions will work. Any ideas for this?