mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -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:
parent
1aaeb2113b
commit
c77729fd23
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue