This project is archived and is in readonly mode.
Changeset [676b0c87642786080ab9e22fcc86a13d15324d4b] by Jeremy Kemper
Revision 676b0c87642786080ab9e22fcc86a13d15324d4b,
committed 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...
4 changed files
-
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