diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-20 23:20:44 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-20 23:20:44 +0530 |
commit | af1b5c54cfb74caddd6ffab171d26da9a5c885d1 (patch) | |
tree | 2e029d8df73d62c456fce667a647dabf93397863 /activesupport/lib/active_support/core_ext | |
parent | ee9d9fb5fab3cfaa5055e5fb4225b720d3818c94 (diff) | |
parent | 274c3fad5087306a64ca91d044756221f5ff862c (diff) | |
download | rails-af1b5c54cfb74caddd6ffab171d26da9a5c885d1.tar.gz rails-af1b5c54cfb74caddd6ffab171d26da9a5c885d1.tar.bz2 rails-af1b5c54cfb74caddd6ffab171d26da9a5c885d1.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-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 |