mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Improved rendering speed on complicated templates by up to 25% #1234 [Stephan Kaes]. This did necessasitate a change to the internals of ActionView#render_template that now has four parameters. Developers of custom view handlers (like Amrita) need to update for that.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -19,7 +19,7 @@ class CustomHandlerTest < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_custom_render
|
||||
result = @view.render_template( "foo", "hello <%= one %>", "one" => "two" )
|
||||
result = @view.render_template( "foo", "hello <%= one %>", nil, "one" => "two" )
|
||||
assert_equal(
|
||||
[ "hello <%= one %>", { "one" => "two" }, @view ],
|
||||
result )
|
||||
@@ -27,7 +27,7 @@ class CustomHandlerTest < Test::Unit::TestCase
|
||||
|
||||
def test_unhandled_extension
|
||||
# uses the ERb handler by default if the extension isn't recognized
|
||||
result = @view.render_template( "bar", "hello <%= one %>", "one" => "two" )
|
||||
result = @view.render_template( "bar", "hello <%= one %>", nil, "one" => "two" )
|
||||
assert_equal "hello two", result
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user