rails/rails — pull request #7099 by f1sherman (2012-07-19 00:52:54+00:00)
Title: Clean up Sweeper controller accessor when an Error is raised

There are a couple of reasons why this is beneficial:
- the controller accessor will be able to be garbage collected
- if the sweeper has logic that is dependent upon the controller accessor, it will behave properly when run outside of the request process (i.e. via a queue job)