aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/core_ext/range/blockless_step.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/range/blockless_step.rb b/activesupport/lib/active_support/core_ext/range/blockless_step.rb
index 39dac85636..6fa1eb5bee 100644
--- a/activesupport/lib/active_support/core_ext/range/blockless_step.rb
+++ b/activesupport/lib/active_support/core_ext/range/blockless_step.rb
@@ -8,7 +8,7 @@ module ActiveSupport #: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 @@ module ActiveSupport #:nodoc:
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