diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-18 16:00:20 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-18 16:00:20 -0500 |
commit | d2ccb852d4e1f6f1b01e43f32213053ae3bef408 (patch) | |
tree | 4923c27ea8714849ea40a85e7ed21fc761f87a53 /actionpack/test/controller | |
parent | ef6f6625c91ea789a033799f649e4388e4a71045 (diff) | |
download | rails-d2ccb852d4e1f6f1b01e43f32213053ae3bef408.tar.gz rails-d2ccb852d4e1f6f1b01e43f32213053ae3bef408.tar.bz2 rails-d2ccb852d4e1f6f1b01e43f32213053ae3bef408.zip |
Removed lagacy TemplateHandler#render API. Left in a legacy TemplateHandler and Compilable stub so plugins will not have to change anything.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/layout_test.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/actionpack/test/controller/layout_test.rb b/actionpack/test/controller/layout_test.rb index 92b6aa4f2f..72c01a9102 100644 --- a/actionpack/test/controller/layout_test.rb +++ b/actionpack/test/controller/layout_test.rb @@ -31,16 +31,8 @@ end class MultipleExtensions < LayoutTest end -class MabView < ActionView::TemplateHandler - def initialize(view) - end - - def render(template, local_assigns) - template.source - end -end - -ActionView::Template::register_template_handler :mab, MabView +ActionView::Template::register_template_handler :mab, + lambda { |template| template.source.inspect } class LayoutAutoDiscoveryTest < Test::Unit::TestCase def setup |