aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array
diff options
context:
space:
mode:
authorMartin Svalin <martin@lite.nu>2011-10-20 16:31:10 +0200
committerMartin Svalin <martin@lite.nu>2011-10-20 16:31:23 +0200
commit274c3fad5087306a64ca91d044756221f5ff862c (patch)
tree14674b4d95b813675e00cff1a09e6c2f27e24e8a /activesupport/lib/active_support/core_ext/array
parent66880cfe416b75f472762f2c6b485bad9759c751 (diff)
downloadrails-274c3fad5087306a64ca91d044756221f5ff862c.tar.gz
rails-274c3fad5087306a64ca91d044756221f5ff862c.tar.bz2
rails-274c3fad5087306a64ca91d044756221f5ff862c.zip
Fixed misleading docs for String#to_formatted_s(:db)
Diffstat (limited to 'activesupport/lib/active_support/core_ext/array')
-rw-r--r--activesupport/lib/active_support/core_ext/array/conversions.rb6
1 files 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 <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