Fixed misleading docs for String#to_formatted_s(:db)

This commit is contained in:
Martin Svalin
2011-10-20 16:31:10 +02:00
parent 66880cfe41
commit 274c3fad50

View File

@@ -39,10 +39,10 @@ class Array
#
# 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