mirror of
https://github.com/github/rails.git
synced 2026-01-28 15:58:03 -05:00
Set sweeper's @controller to nil after a request so that the controller may be collected between requests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3529 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Set sweeper's @controller to nil after a request so that the controller may be collected between requests.
|
||||
|
||||
* Subclasses of ActionController::Caching::Sweeper should be Reloadable. [Rick Olson]
|
||||
|
||||
* Document the :xhr option for verifications. #3666 [leeo]
|
||||
|
||||
@@ -532,6 +532,8 @@ module ActionController #:nodoc:
|
||||
|
||||
def after(controller)
|
||||
callback(:after)
|
||||
# Clean up, so that the controller can be collected after this request
|
||||
self.controller = nil
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user