aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-11-15 00:53:57 +0530
committerKuldeep Aggarwal <kd.engineer@yahoo.co.in>2013-11-15 00:53:57 +0530
commitd3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd (patch)
tree65004268d5092ecc56983a455603729d7476f148 /actionpack/lib/action_controller
parent140c0c8881d100b0d0bc2a0bce1227ddfbd9c9bd (diff)
downloadrails-d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd.tar.gz
rails-d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd.tar.bz2
rails-d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd.zip
Used Yield instead of block.call
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/mime_responds.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/mime_responds.rb b/actionpack/lib/action_controller/metal/mime_responds.rb
index a072fce1a1..87b71a4e83 100644
--- a/actionpack/lib/action_controller/metal/mime_responds.rb
+++ b/actionpack/lib/action_controller/metal/mime_responds.rb
@@ -358,10 +358,10 @@ module ActionController #:nodoc:
#
# Sends :not_acceptable to the client and returns nil if no suitable format
# is available.
- def retrieve_collector_from_mimes(mimes=nil, &block) #:nodoc:
+ def retrieve_collector_from_mimes(mimes = nil) #:nodoc:
mimes ||= collect_mimes_from_class_level
collector = Collector.new(mimes)
- block.call(collector) if block_given?
+ yield(collector) if block_given?
format = collector.negotiate_format(request)
if format