This project is archived and is in readonly mode.

#595 ✓resolved
Brad Folkens

Range#step parameter default (n=1) conflict

Reported by Brad Folkens | July 10th, 2008 @ 05:54 PM | in 2.1.1

ActiveSupport's step_with_blockless overrides Range#step(n=1) from Ruby's core and doesn't define the same n=1 default. This breaks Range#step when called without a parameter.

Is this intended? (If not, patch is attached)

ActiveSupport tests still pass with this patch.

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>

Attachments

Referenced by

Pages