ruby on rails - Getting the Request Env in a worker -


i'm using mixpanel gem server side event tracking. chose use resque implementation. can see in example, in userscontroller, have pass env hash because "trying pass request.env resque going fail (it chokes when trying convert json)". works if refactor code model, have generate env variable in controller before passing queue in model, seems wrong.

i've written method generates in applicationcontroller, i'm measuring many events i'm passing through model many times doesn't make sense. there way request variable in worker instead of passing through worker?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -