aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-10-28 11:06:08 -0500
committerJoshua Peek <josh@joshpeek.com>2008-10-28 11:06:08 -0500
commitac50ee0edfa0df90ae7a8dd09f4a41ecbd1c7a94 (patch)
tree5520adefae997928b844fb456fd106b3c08de6cd /actionpack/lib/action_controller/test_process.rb
parent0f651aec4eb4630945d02571fe542414ef628c5c (diff)
downloadrails-ac50ee0edfa0df90ae7a8dd09f4a41ecbd1c7a94.tar.gz
rails-ac50ee0edfa0df90ae7a8dd09f4a41ecbd1c7a94.tar.bz2
rails-ac50ee0edfa0df90ae7a8dd09f4a41ecbd1c7a94.zip
Track rendered templates in stack so the current template can always be accessed. Added ActionView::Base#template to access the template object.
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index f84c48f102..7a31f0e8d5 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -218,7 +218,7 @@ module ActionController #:nodoc:
# Returns the template of the file which was used to
# render this response (or nil)
def rendered_template
- template.send(:_first_render)
+ template.instance_variable_get(:@_first_render)
end
# A shortcut to the flash. Returns an empty hash if no session flash exists.