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

css - Text drops down with smaller window -

php - Boolean search on database with 5 million rows, very slow -

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