diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-04-26 22:21:47 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-12 22:34:23 -0300 |
commit | 700c58355c04595795b03ff29e727eac7200e928 (patch) | |
tree | 5bd526bc9dab7c67334836fbb4d4631fb9b7668e /activerecord/test/assets | |
parent | 99e2a223e8a5fd0943f2e2168fb2866eb831030c (diff) | |
download | rails-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 'activerecord/test/assets')
0 files changed, 0 insertions, 0 deletions