diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-05-07 18:08:13 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-05-07 18:08:13 +0530 |
commit | 3056b3379b8ca5d859e8237c46d6abe7f67a5d09 (patch) | |
tree | c7c751ebe670548240629ca8a9292c264d5c27c0 /activesupport/lib | |
parent | 7194b393a611727fb36e8f586910e75db1bae746 (diff) | |
download | rails-3056b3379b8ca5d859e8237c46d6abe7f67a5d09.tar.gz rails-3056b3379b8ca5d859e8237c46d6abe7f67a5d09.tar.bz2 rails-3056b3379b8ca5d859e8237c46d6abe7f67a5d09.zip |
use new AR calls in examples
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/array/conversions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb index baefa9cae4..3b22e8b4f9 100644 --- a/activesupport/lib/active_support/core_ext/array/conversions.rb +++ b/activesupport/lib/active_support/core_ext/array/conversions.rb @@ -37,12 +37,12 @@ class Array # Converts a collection of elements into a formatted string by calling # <tt>to_s</tt> on all elements and joining them: # - # Blog.find(:all).to_formatted_s # => "First PostSecond PostThird Post" + # Blog.all.to_formatted_s # => "First PostSecond PostThird Post" # # Adding in the <tt>:db</tt> argument as the format yields a prettier # output: # - # Blog.find(:all).to_formatted_s(:db) # => "First Post,Second Post,Third Post" + # Blog.all.to_formatted_s(:db) # => "First Post,Second Post,Third Post" def to_formatted_s(format = :default) case format when :db |