This project is archived and is in readonly mode.
Changeset [b0db1f04d7d21d0f8a9cfed072e928dc6d6c0fb0] by Yehuda Katz
Revision b0db1f04d7d21d0f8a9cfed072e928dc6d6c0fb0,
committed by Yehuda Katz
· August 11th, 2009 @ 11:02 PM
Clean up ActionView some:
- Call _evaluate_assigns_and_ivars at the two entry points so we don't have to do a check at every render.
- Make template.render viable without having to go through a wrapper method
- Remove old TemplateHandler#render(template, local_assigns) path so we don't have to set self.template every time we render a template.
- Move Template rescuing code to Template#render so it gets caught every time.
- Pull in some tests from Pratik that test render @object in ActionView http://github.com/rails/rails/co...
6 changed files
-
M
actionpack/lib/action_view/base.rb -
M
actionpack/lib/action_view/render/partials.rb -
M
actionpack/lib/action_view/render/rendering.rb -
M
actionpack/lib/action_view/template/handler.rb -
M
actionpack/lib/action_view/template/template.rb -
M
actionpack/test/template/render_test.rb