Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Range#step parameter default (n=1) conflict

#595

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.

Reported by Brad Folkens · July 10th, 2008 @ 05:54 PM

State: resolved
Milestone: 2.1.1
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Pratik
    Pratik
    • Assigned user set to Jeremy Kemper
    • Tag changed from activesupport to activesupport, patch

    July 14th, 2008 @ 01:16 AM

  2. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to open
    • Milestone changed from 2.x to 2.1.1

    August 28th, 2008 @ 07:48 AM

  3. Repository
    Repository
    • State changed from open to resolved

    (from [b0907153da7b8bc8c02692eaadfac3a0853c0e99]) Reinstate Range#step default argument.

    [#595 Range#step parameter default (n=1) conflict state:resolved]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    August 28th, 2008 @ 08:04 PM

  4. Repository
    Repository

    (from [293f99700d6f2388ea5c504d706651ff3044d733]) Reinstate Range#step default argument.

    [#595 Range#step parameter default (n=1) conflict state:resolved]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    August 28th, 2008 @ 08:04 PM