Permalink
Browse files

Fixed misleading docs for String#to_formatted_s(:db)

  • Loading branch information...
1 parent 66880cf commit 274c3fad5087306a64ca91d044756221f5ff862c @martinsvalin martinsvalin committed Oct 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -39,10 +39,10 @@ def to_sentence(options = {})
#
# Blog.all.to_formatted_s # => "First PostSecond PostThird Post"
#
- # Adding in the <tt>:db</tt> argument as the format yields a prettier
- # output:
+ # Adding in the <tt>:db</tt> argument as the format yields a comma separated
+ # id list:
#
- # Blog.all.to_formatted_s(:db) # => "First Post,Second Post,Third Post"
+ # Blog.all.to_formatted_s(:db) # => "1,2,3"
def to_formatted_s(format = :default)
case format
when :db

0 comments on commit 274c3fa

Please sign in to comment.