Permalink
Browse files

Updated description of #retrieve_collector_from_mimes

  • Loading branch information...
1 parent 10e1ce4 commit fb094acc56f3b351986db35ee217caa7242d4cde @MarkMT MarkMT committed Mar 13, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 actionpack/lib/action_controller/metal/mime_responds.rb
@@ -259,8 +259,12 @@ def collect_mimes_from_class_level #:nodoc:
end
end
- # Collects mimes and return the response for the negotiated format. Returns
- # nil if :not_acceptable was sent to the client.
+ # Returns a Collector object containing the appropriate mime-type response
+ # for the current request, based on the available responses defined by a block.
+ # In typical usage this is the block passed to +respond_with+ or +respond_to+.
+ #
+ # Sends :not_acceptable to the client and returns nil if no suitable format
+ # is available.
#
def retrieve_collector_from_mimes(mimes=nil, &block) #:nodoc:
mimes ||= collect_mimes_from_class_level

0 comments on commit fb094ac

Please sign in to comment.