Permalink
Browse files

Correct deprecated AR usage in ActionController::MimeResponds documen…

…tation
  • Loading branch information...
1 parent ad14926 commit 1a6c4c86ea55dd8d72807b54d24b92422a7cf329 @willcannings willcannings committed Dec 19, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -63,13 +63,13 @@ def clear_respond_to
# might look something like this:
#
# def index
- # @people = Person.find(:all)
+ # @people = Person.all
# end
#
# Here's the same action, with web-service support baked in:
#
# def index
- # @people = Person.find(:all)
+ # @people = Person.all
#
# respond_to do |format|
# format.html
@@ -155,7 +155,7 @@ def clear_respond_to
# Respond to also allows you to specify a common block for different formats by using any:
#
# def index
- # @people = Person.find(:all)
+ # @people = Person.all
#
# respond_to do |format|
# format.html
@@ -178,7 +178,7 @@ def clear_respond_to
# respond_to :html, :xml, :json
#
# def index
- # @people = Person.find(:all)
+ # @people = Person.all
# respond_with(@person)
# end
# end

0 comments on commit 1a6c4c8

Please sign in to comment.