diff options
author | Martin Svalin <martin@lite.nu> | 2011-10-20 16:31:10 +0200 |
---|---|---|
committer | Martin Svalin <martin@lite.nu> | 2011-10-20 16:31:23 +0200 |
commit | 274c3fad5087306a64ca91d044756221f5ff862c (patch) | |
tree | 14674b4d95b813675e00cff1a09e6c2f27e24e8a /activesupport/lib/active_support/core_ext/array/conversions.rb | |
parent | 66880cfe416b75f472762f2c6b485bad9759c751 (diff) | |
download | rails-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/conversions.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/conversions.rb | 6 |
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 |