diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-15 21:39:04 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-15 21:39:04 +0000 |
commit | 3f29043f456af423c4ec7599040625c87321aa77 (patch) | |
tree | 2a36b04caf5607069001b3f6aab20d4da9b72a04 /activesupport/lib | |
parent | 0b0931e15066a04bb5aea8dac910497ddb5f9b33 (diff) | |
download | rails-3f29043f456af423c4ec7599040625c87321aa77.tar.gz rails-3f29043f456af423c4ec7599040625c87321aa77.tar.bz2 rails-3f29043f456af423c4ec7599040625c87321aa77.zip |
Added Array#rand (closes #9170) [norbert]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/array.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/array.rb b/activesupport/lib/active_support/core_ext/array.rb index 11003e2c0b..1d18900bab 100644 --- a/activesupport/lib/active_support/core_ext/array.rb +++ b/activesupport/lib/active_support/core_ext/array.rb @@ -1,9 +1,11 @@ require File.dirname(__FILE__) + '/array/conversions' -require File.dirname(__FILE__) + '/array/grouping' require File.dirname(__FILE__) + '/array/extract_options' +require File.dirname(__FILE__) + '/array/grouping' +require File.dirname(__FILE__) + '/array/random_access' class Array #:nodoc: include ActiveSupport::CoreExtensions::Array::Conversions - include ActiveSupport::CoreExtensions::Array::Grouping include ActiveSupport::CoreExtensions::Array::ExtractOptions + include ActiveSupport::CoreExtensions::Array::Grouping + include ActiveSupport::CoreExtensions::Array::RandomAccess end |