From 02b0f8d9ffb0b5ea7352cf84ac9daebb0a316660 Mon Sep 17 00:00:00 2001 From: Ayrton De Craene Date: Tue, 4 Oct 2011 15:21:23 +0300 Subject: to_formatted_s is an instance method for a Range not an Array --- activesupport/lib/active_support/core_ext/range/conversions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/core_ext/range/conversions.rb b/activesupport/lib/active_support/core_ext/range/conversions.rb index 544e63132d..43134b4314 100644 --- a/activesupport/lib/active_support/core_ext/range/conversions.rb +++ b/activesupport/lib/active_support/core_ext/range/conversions.rb @@ -7,7 +7,7 @@ class Range # # ==== Example # - # [1..100].to_formatted_s # => "1..100" + # (1..100).to_formatted_s # => "1..100" def to_formatted_s(format = :default) if formatter = RANGE_FORMATS[format] formatter.call(first, last) -- cgit v1.2.3