1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fixed display of example

This commit is contained in:
TomK32 2008-05-12 10:49:30 +02:00
parent cb50a28807
commit d416e71229

View file

@ -17,8 +17,7 @@ module ActiveSupport #:nodoc:
#
# Example:
#
# >> [1..100].to_formatted_s
# => "1..100"
# [1..100].to_formatted_s # => "1..100"
def to_formatted_s(format = :default)
RANGE_FORMATS[format] ? RANGE_FORMATS[format].call(first, last) : to_default_s
end