This project is archived and is in readonly mode.
Changeset [676b0c87642786080ab9e22fcc86a13d15324d4b] by Jeremy Kemper
February 6th, 2009 @ 06:04 PM
Introduce Array.wrap(foo) to wrap the argument in an array unless it's already an array. Wraps nil as an empty array. Use instead of Array(foo) and foo.to_a since they treat String as Enumerable. http://github.com/rails/rails/co...
Committed by Jeremy Kemper
- M activesupport/CHANGELOG
- M activesupport/lib/active_support/core_ext/array.rb
- M activesupport/lib/active_support/core_ext/array/wrapper.rb
- M activesupport/test/core_ext/array_ext_test.rb
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>