aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorWill <me@willcannings.com>2010-12-19 14:14:02 +1100
committerWill <me@willcannings.com>2010-12-19 14:14:02 +1100
commit1a6c4c86ea55dd8d72807b54d24b92422a7cf329 (patch)
tree6716b13871404de490b0fa942b58c47bae902f88 /actionpack
parentad14926b44596f090c0ef060c1b2c2dde4c71016 (diff)
downloadrails-1a6c4c86ea55dd8d72807b54d24b92422a7cf329.tar.gz
rails-1a6c4c86ea55dd8d72807b54d24b92422a7cf329.tar.bz2
rails-1a6c4c86ea55dd8d72807b54d24b92422a7cf329.zip
Correct deprecated AR usage in ActionController::MimeResponds documentation
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/mime_responds.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb
index 9ba37134b8..3474f09d33 100644
--- a/actionpack/lib/action_controller/metal/mime_responds.rb
+++ b/actionpack/lib/action_controller/metal/mime_responds.rb
@@ -63,13 +63,13 @@ module ActionController #:nodoc:
# 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 @@ module ActionController #:nodoc:
# 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 @@ module ActionController #:nodoc:
# respond_to :html, :xml, :json
#
# def index
- # @people = Person.find(:all)
+ # @people = Person.all
# respond_with(@person)
# end
# end