Skip to content

Commit

Permalink
Fixed misleading docs for String#to_formatted_s(:db)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsvalin committed Oct 20, 2011
1 parent 66880cf commit 274c3fa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 274c3fa

Please sign in to comment.