Patch #26721

Updated by Toshi MARUYAMA 2 months ago

In project.rb

<pre><code class="ruby">

enable_module(name)
enabled_modules.detect {|m| m.name == name}
end
</code></pre>

should be replaced by in order to only get the specified enabled_module instead of doing filtering after retrieving them all.

<pre><code class="ruby">

enabled_modules.find_by(name: name)
</code></pre>

Back