aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/mime_responds.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-07-05 01:16:41 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-07-05 01:16:41 +0000
commitf780bb8f58f15f6d60c8d6a4ad4adf19f3681bfe (patch)
treeb76e0760f248975ed5667046dea22f7bf223870a /actionpack/lib/action_controller/mime_responds.rb
parent28ef328baa7bdc134667b7da3d5e8b0777a35cc0 (diff)
downloadrails-f780bb8f58f15f6d60c8d6a4ad4adf19f3681bfe.tar.gz
rails-f780bb8f58f15f6d60c8d6a4ad4adf19f3681bfe.tar.bz2
rails-f780bb8f58f15f6d60c8d6a4ad4adf19f3681bfe.zip
Doc fix (closes #5576)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/mime_responds.rb')
-rw-r--r--actionpack/lib/action_controller/mime_responds.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/mime_responds.rb b/actionpack/lib/action_controller/mime_responds.rb
index f14500f551..65d341f6f4 100644
--- a/actionpack/lib/action_controller/mime_responds.rb
+++ b/actionpack/lib/action_controller/mime_responds.rb
@@ -93,7 +93,7 @@ module ActionController #:nodoc:
# in a single request (i.e., by wrapping them all in a single root note), but if you just go with the flow
# and accept Rails' defaults, life will be much easier.
def respond_to(*types, &block)
- raise ArgumentError, "respond_to takes either types or a block, never bot" unless types.any? ^ block
+ raise ArgumentError, "respond_to takes either types or a block, never both" unless types.any? ^ block
block ||= lambda { |responder| types.each { |type| responder.send(type) } }
responder = Responder.new(block.binding)
block.call(responder)