diff options
author | Henrik Nygren <nygrenh@gmail.com> | 2015-05-14 09:42:55 +0300 |
---|---|---|
committer | Henrik Nygren <nygrenh@gmail.com> | 2015-05-14 10:46:44 +0300 |
commit | bef9484cf867ab261891d3431782e60c4e17f87f (patch) | |
tree | 20d2436600193a9fcd756b564aeb0153c8425ecb /tasks | |
parent | 987a45307f8ca0b8b6cbab3763180cbe4eee18b7 (diff) | |
download | rails-bef9484cf867ab261891d3431782e60c4e17f87f.tar.gz rails-bef9484cf867ab261891d3431782e60c4e17f87f.tar.bz2 rails-bef9484cf867ab261891d3431782e60c4e17f87f.zip |
Do not put partial name to local_assigns when rendering without an object
When one rendered a partial template without specifying an object
or a collection (e.g. <%= render partial: 'partial_name' %>), Rails
would make an object called :partial_name available in local_assigns.
I don't think this was the intended behavior, since no local variable
called 'partial_name' gets defined in the view.
Diffstat (limited to 'tasks')
0 files changed, 0 insertions, 0 deletions