Permalink
Browse files

Reinstate Range#step default argument.

[#595 state:resolved]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 367942d commit b0907153da7b8bc8c02692eaadfac3a0853c0e99 @bfolkens bfolkens committed with jeremy Jul 10, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/range/blockless_step.rb
@@ -8,7 +8,7 @@ def self.included(base) #:nodoc:
end
if RUBY_VERSION < '1.9'
- def step_with_blockless(value, &block)
+ def step_with_blockless(value = 1, &block)
if block_given?
step_without_blockless(value, &block)
else
@@ -18,7 +18,7 @@ def step_with_blockless(value, &block)
end
end
else
- def step_with_blockless(value, &block)
+ def step_with_blockless(value = 1, &block)
if block_given?
step_without_blockless(value, &block)
else

0 comments on commit b090715

Please sign in to comment.