Skip to content

Commit

Permalink
Correct deprecated AR usage in ActionController::MimeResponds documen…
Browse files Browse the repository at this point in the history
…tation
  • Loading branch information
willcannings committed Dec 19, 2010
1 parent ad14926 commit 1a6c4c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actionpack/lib/action_controller/metal/mime_responds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1a6c4c8

Please sign in to comment.