aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/template/inline.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add a finalizer to inline templatesAaron Patterson2019-02-221-0/+22
This commit adds a finalizer just to inline templates. We can't cache compilation of inline templates because it's possible that people could have render calls that look like this: ```ruby loop do render inline: "#{rand}" end ``` and we would cache every one of these different inline templates. That would cause a memory leak. OTOH, we don't need finalizers on regular templates because we can cache, control, and detect changes to the template source. Fixes: #35372