mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Integration tests behave well with render_component. Closes #4632.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Integration tests behave well with render_component. #4632 [edward.frederick@revolution.com, dev.rubyonrails@maxdunn.com]
|
||||
|
||||
* Added exception handling of missing layouts #5373 [chris@ozmm.org]
|
||||
|
||||
* Fixed that real files and symlinks should be treated the same when compiling templates #5438 [zachary@panandscan.com]
|
||||
|
||||
@@ -332,9 +332,11 @@ module ActionController
|
||||
def clear_last_instantiation!
|
||||
self.last_instantiation = nil
|
||||
end
|
||||
|
||||
|
||||
def new_with_capture(*args)
|
||||
self.last_instantiation ||= new_without_capture(*args)
|
||||
controller = new_without_capture(*args)
|
||||
self.last_instantiation ||= controller
|
||||
controller
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user