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:
parent
cb50a28807
commit
d416e71229
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue