Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use new AR calls in examples

  • Loading branch information...
commit 3056b3379b8ca5d859e8237c46d6abe7f67a5d09 1 parent 7194b39
@vijaydev vijaydev authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/core_ext/array/conversions.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.