diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-12 23:25:03 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-12 23:25:03 +0100 |
commit | 40599d1d7468e8d13932ada859987d9d2f32cb18 (patch) | |
tree | 8619a9021bbc34a0594e974c303af17018ed6c09 /tools/console | |
parent | 42fd563f66798ab286699520dc5f3550a6e4c575 (diff) | |
download | rails-40599d1d7468e8d13932ada859987d9d2f32cb18.tar.gz rails-40599d1d7468e8d13932ada859987d9d2f32cb18.tar.bz2 rails-40599d1d7468e8d13932ada859987d9d2f32cb18.zip |
Stop mutating return value.
`PartialRenderer.render_collection_with/without_template` returns an array
of rendered partials. Avoid dup'ing and shifting it by indexing into
the collection instead.
Diffstat (limited to 'tools/console')
0 files changed, 0 insertions, 0 deletions