This project is archived and is in readonly mode.

Changeset [b0db1f04d7d21d0f8a9cfed072e928dc6d6c0fb0] 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...

Committed by Yehuda Katz

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>