This project is archived and is in readonly mode.
Array Extension Standalone
Reported by Ryan Bigg | December 17th, 2009 @ 04:41 AM | in 3.0.2
As referenced on the rails-core mailing list, doing a:
require 'activesupport/core_ext/array'
Does not require all the necessary components for all the extensions in activesupport to function correctly. This behaviour was tested on 2.3 and 3.0, yielding similar results:
irb(main):001:0> require 'active_support/array'
irb(main):002:0> [1].to_sentence
NameError: uninitialized constant Array::I18n
As you can see here, the array core extensions are not including I18n by default. Without it, to_sentence is broken.
Comments and changes to this ticket
-
Yehuda Katz (wycats) December 17th, 2009 @ 05:15 PM
- Milestone cleared.
- Tag changed from activesupport to activesupport, standalone
-
Xavier Noria December 20th, 2009 @ 12:39 AM
I am doing a systematic pass through AS core extensions checking this.
-
Xavier Noria January 1st, 2010 @ 10:45 PM
I finished the pass and found about 30 missing requires.
Jeremy just merged it, I think this ticket can be closed.
-
Jeremy Kemper January 1st, 2010 @ 11:42 PM
- State changed from new to committed
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to High
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>