This project is archived and is in readonly mode.

#4555 ✓resolved
djbob

active_support/core_ext/array/random_access.rb conflicts with standard Ruby library

Reported by djbob | May 8th, 2010 @ 08:49 AM | in 3.0.2

Hello,

The rand() method is overriden for Array unsafely in active_support. rand() is originally a private method taking a single parameter, but active_support adds a public rand() with no parameters. This causes some trouble with extensions of Array that want to use this method, such as the rand gem. A revised random_access.rb with a safe rand() is included.

Thanks,
djbob

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages