diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-05-13 13:44:35 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-05-13 13:44:39 -0300 |
commit | 1c481be331f32a7768b1017b86bd1b1beea02efc (patch) | |
tree | be4a72f953627422a57a2a425efa40f13a8539d0 /activesupport/lib | |
parent | 6e55d30ca8a5a165211dfd0ba7a2beef3ad23cda (diff) | |
download | rails-1c481be331f32a7768b1017b86bd1b1beea02efc.tar.gz rails-1c481be331f32a7768b1017b86bd1b1beea02efc.tar.bz2 rails-1c481be331f32a7768b1017b86bd1b1beea02efc.zip |
Remove blockless_step leave all that up to Ruby
Closes #6297
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/range.rb | 1 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/range/blockless_step.rb | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/activesupport/lib/active_support/core_ext/range.rb b/activesupport/lib/active_support/core_ext/range.rb index c0736f3a44..1d8b1ede5a 100644 --- a/activesupport/lib/active_support/core_ext/range.rb +++ b/activesupport/lib/active_support/core_ext/range.rb @@ -1,4 +1,3 @@ -require 'active_support/core_ext/range/blockless_step' require 'active_support/core_ext/range/conversions' require 'active_support/core_ext/range/include_range' require 'active_support/core_ext/range/overlaps' diff --git a/activesupport/lib/active_support/core_ext/range/blockless_step.rb b/activesupport/lib/active_support/core_ext/range/blockless_step.rb deleted file mode 100644 index f687287f0d..0000000000 --- a/activesupport/lib/active_support/core_ext/range/blockless_step.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'active_support/core_ext/module/aliasing' - -class Range - def step_with_blockless(*args, &block) #:nodoc: - if block_given? - step_without_blockless(*args, &block) - else - step_without_blockless(*args).to_a - end - end - - alias_method_chain :step, :blockless -end |