views:

10

answers:

0

I would like to be able to execute some code after having send the response to finalize things which takes time but the user doesn't need to wait for. Is there a way to add a callback or hook to do this ? If I use after_filter or (around_filter) its called after the controller but still before the response is sent. I' m considering using delayed or background jobs but I'm wondering if there is a simplest way.

Thanks