Permalink
Browse files

use new AR calls in examples

  • Loading branch information...
1 parent 7194b39 commit 3056b3379b8ca5d859e8237c46d6abe7f67a5d09 @vijaydev vijaydev committed May 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -37,12 +37,12 @@ def to_sentence(options = {})
# 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

0 comments on commit 3056b33

Please sign in to comment.