aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.textile
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-04-26 22:21:47 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-12 22:34:23 -0300
commit700c58355c04595795b03ff29e727eac7200e928 (patch)
tree5bd526bc9dab7c67334836fbb4d4631fb9b7668e /guides/source/upgrading_ruby_on_rails.textile
parent99e2a223e8a5fd0943f2e2168fb2866eb831030c (diff)
downloadrails-700c58355c04595795b03ff29e727eac7200e928.tar.gz
rails-700c58355c04595795b03ff29e727eac7200e928.tar.bz2
rails-700c58355c04595795b03ff29e727eac7200e928.zip
Improve and cleanup a bit partial renderer
* Remove template assignment: there is no need for this assignment, given we are rendering a collection with possibly different templates, and a second call to render (with the same instance) would behave differently if the template is set. * Remove segments array in favor of Array#map * Use local vars whenever possible * Cache local template keys, remove defaults from find_template
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.textile')
0 files changed, 0 insertions, 0 deletions