Run code after response has been sent

In a previous project using rails 2 I had to hack into
ActionController::process in order to run some code AFTER the response
had been sent. We have a custom logger that logs to scribe, and we
need to send the http response code in the log message.

What the correct way with rails 3 to run something after the request
has been sent?

Chris