diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-10-28 11:06:08 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-10-28 11:06:08 -0500 |
commit | ac50ee0edfa0df90ae7a8dd09f4a41ecbd1c7a94 (patch) | |
tree | 5520adefae997928b844fb456fd106b3c08de6cd /actionpack/lib/action_controller | |
parent | 0f651aec4eb4630945d02571fe542414ef628c5c (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 2 |
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. |