Patch #26727

Updated by Toshi MARUYAMA almost 5 years ago

<pre><code class="ruby"> &lt;pre&gt;
/app/controllers/wiki_controller.rb
272 @page.children.each do |child|
273 child.update_attribute(:parent, reassign_to)
274 end
</code></pre> &lt;/pre&gt;

could use
<pre><code class="ruby"> &lt;pre&gt;
@page.children.update_all(parent: reassign_to)
</code></pre> &lt;/pre&gt;

Back