aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShigeya Suzuki <shigeya@wide.ad.jp>2012-07-19 09:57:34 +0900
committerShigeya Suzuki <shigeya@wide.ad.jp>2012-07-19 09:57:34 +0900
commit9674d2c70f59892911d1aa9db20d72c3c0837102 (patch)
tree2059ea650e0ef52d6e4befb8e74c8293e57fd942
parente482100d6ed022d00ba31c6c4377f6f947173337 (diff)
downloadrails-9674d2c70f59892911d1aa9db20d72c3c0837102.tar.gz
rails-9674d2c70f59892911d1aa9db20d72c3c0837102.tar.bz2
rails-9674d2c70f59892911d1aa9db20d72c3c0837102.zip
Clarification to doc of ActionController::MimeResponse.respond_to
- #respond_to's documentation refer to .respond_to, but it was written as just <respond_to>. Added class name for clarification.
-rw-r--r--actionpack/lib/action_controller/metal/mime_responds.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb
index 0b800c3c62..431ee69e4c 100644
--- a/actionpack/lib/action_controller/metal/mime_responds.rb
+++ b/actionpack/lib/action_controller/metal/mime_responds.rb
@@ -182,7 +182,8 @@ module ActionController #:nodoc:
# end
# end
#
- # Be sure to check respond_with and respond_to documentation for more examples.
+ # Be sure to check respond_with and
+ # ActionController::MimeResponds.respond_to documentation for more examples.
def respond_to(*mimes, &block)
raise ArgumentError, "respond_to takes either types or a block, never both" if mimes.any? && block_given?