This project is archived and is in readonly mode.
![Diego Carrion Diego Carrion](https://entp-lh-avatar-production.s3.amazonaws.com/avatars/26127/large.jpg?AWSAccessKeyId=AKIAJ4QBZRZBVMOUBNZA&Expires=2017451536&Signature=dvQ1HCkQhuX9BsvJ6B%2B3wYiT58E%3D)
Refactored and reduced method calls on Engine.find
Reported by Diego Carrion | March 5th, 2011 @ 05:06 AM
Hi, Engine.path is expanding the same path passed as an argument every time it compares it with the engines paths. I changed the code to expand it only once and then use the value in the comparisons.
Comments and changes to this ticket
-
Repository March 9th, 2011 @ 02:29 AM
- State changed from new to committed
(from [c7cfdd01c114e103508c435d5e6cfee0703e2e1d]) refactored Engine.#find by giving an explicit name to a variable and reducing calls
[#6529 state:committed]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/c7cfdd01c114e103508c435d5e6cf...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
-
6529 Refactored and reduced method calls on Engine.find [#6529 state:committed]