Project

General

Profile

Patch #26721

Updated by Toshi MARUYAMA over 6 years 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