Permalink
Browse files

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.
  • Loading branch information...
1 parent e482100 commit 9674d2c70f59892911d1aa9db20d72c3c0837102 @shigeya shigeya committed Jul 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -182,7 +182,8 @@ def clear_respond_to
# 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?

0 comments on commit 9674d2c

Please sign in to comment.