aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/custom_handler_test.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-03-03 04:01:35 +0000
committerMichael Koziarski <michael@koziarski.com>2008-03-03 04:01:35 +0000
commit51b6619d4e78d9948952dab4709274ab57f41206 (patch)
treebab7a4d988c9349f4d8241e38e09f30d62b0049b /actionpack/test/controller/custom_handler_test.rb
parent10d9d0b6fe023df1be0d87ca95bb739bb7eb30ba (diff)
downloadrails-51b6619d4e78d9948952dab4709274ab57f41206.tar.gz
rails-51b6619d4e78d9948952dab4709274ab57f41206.tar.bz2
rails-51b6619d4e78d9948952dab4709274ab57f41206.zip
Refactor partial rendering into a PartialTemplate class. [Pratik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/custom_handler_test.rb')
-rw-r--r--actionpack/test/controller/custom_handler_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/custom_handler_test.rb b/actionpack/test/controller/custom_handler_test.rb
index 932b8c15c3..cdde00cccc 100644
--- a/actionpack/test/controller/custom_handler_test.rb
+++ b/actionpack/test/controller/custom_handler_test.rb
@@ -5,9 +5,9 @@ class CustomHandler < ActionView::TemplateHandler
@view = view
end
- def render( template, local_assigns )
- [ template,
- local_assigns,
+ def render( template )
+ [ template.source,
+ template.locals,
@view ]
end
end