aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorAyrton De Craene <ayrton.decraene@gmail.com>2011-10-04 15:21:23 +0300
committerAyrton De Craene <ayrton.decraene@gmail.com>2011-10-04 15:21:23 +0300
commit02b0f8d9ffb0b5ea7352cf84ac9daebb0a316660 (patch)
treef32c80afc035208d46a5e6f2befd7af6d2a9c4f5 /activesupport/lib
parent96aa3bd0eae0afa98a1a16d87f5e0b6fa0005dab (diff)
downloadrails-02b0f8d9ffb0b5ea7352cf84ac9daebb0a316660.tar.gz
rails-02b0f8d9ffb0b5ea7352cf84ac9daebb0a316660.tar.bz2
rails-02b0f8d9ffb0b5ea7352cf84ac9daebb0a316660.zip
to_formatted_s is an instance method for a Range not an Array
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/range/conversions.rb2
1 files changed, 1 insertions, 1 deletions
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)