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
Post a Comment