1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Missing file from previous patch

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2007-09-15 22:56:25 +00:00
parent 694f15758c
commit c30c1808c0

View file

@ -0,0 +1,12 @@
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
module Array #:nodoc:
module RandomAccess
# Return a random element from the array.
def rand
self[Kernel.rand(length)]
end
end
end
end
end