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:
parent
694f15758c
commit
c30c1808c0
1 changed files with 12 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue