5292899c9a
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
13 lines
259 B
Ruby
13 lines
259 B
Ruby
module ActiveSupport #:nodoc:
|
|
module CoreExtensions #:nodoc:
|
|
module Array #:nodoc:
|
|
module RandomAccess
|
|
# Returns a random element from the array.
|
|
def rand
|
|
self[Kernel.rand(length)]
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|