aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-05-07 18:08:13 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-05-07 18:08:13 +0530
commit3056b3379b8ca5d859e8237c46d6abe7f67a5d09 (patch)
treec7c751ebe670548240629ca8a9292c264d5c27c0 /activesupport/lib/active_support/core_ext
parent7194b393a611727fb36e8f586910e75db1bae746 (diff)
downloadrails-3056b3379b8ca5d859e8237c46d6abe7f67a5d09.tar.gz
rails-3056b3379b8ca5d859e8237c46d6abe7f67a5d09.tar.bz2
rails-3056b3379b8ca5d859e8237c46d6abe7f67a5d09.zip
use new AR calls in examples
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/array/conversions.rb4
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