This project is archived and is in readonly mode.
Simplify #constantize
Reported by Daniel Schierbeck | August 24th, 2008 @ 02:47 PM | in 2.x
This patch makes #constantize
use #inject
instead of #each
, making it more Rubyesque, at least that's my opinion.
Hope you have a look at it.
Comments and changes to this ticket
-
Daniel Schierbeck August 24th, 2008 @ 02:57 PM
- no changes were found...
-
Jeremy Kemper August 24th, 2008 @ 06:33 PM
- State changed from new to wontfix
I agree that it's definitely more Rubyish, but it allocates more memory. This is a widely-used method so we trade off better style for higher performance :)
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>