This project is archived and is in readonly mode.

#3589 ✓committed
Ryan Bigg

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

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>

Pages