From 274c3fad5087306a64ca91d044756221f5ff862c Mon Sep 17 00:00:00 2001 From: Martin Svalin Date: Thu, 20 Oct 2011 16:31:10 +0200 Subject: Fixed misleading docs for String#to_formatted_s(:db) --- activesupport/lib/active_support/core_ext/array/conversions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb index 3b22e8b4f9..f3d06ecb2f 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -39,10 +39,10 @@ class Array # # Blog.all.to_formatted_s # => "First PostSecond PostThird Post" # - # Adding in the :db argument as the format yields a prettier - # output: + # Adding in the :db 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 -- cgit v1.2.3