aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/caching
diff options
context:
space:
mode:
authorTys von Gaza <tvg@Tys.local>2008-12-15 14:38:22 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-01-27 16:11:45 -0600
commitdd02af5c7e74b4ea0383b0df87824fb2b37f2243 (patch)
tree74685991cc298f5c36172e4ddf426cd384e1658f /actionpack/lib/action_controller/caching
parent093f758bd05d5b6144fd06aa0606c2f987c4ee09 (diff)
downloadrails-dd02af5c7e74b4ea0383b0df87824fb2b37f2243.tar.gz
rails-dd02af5c7e74b4ea0383b0df87824fb2b37f2243.tar.bz2
rails-dd02af5c7e74b4ea0383b0df87824fb2b37f2243.zip
Fix for sweepers method_missing missing &block argument [#1581 status:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
Diffstat (limited to 'actionpack/lib/action_controller/caching')
-rw-r--r--actionpack/lib/action_controller/caching/sweeping.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching/sweeping.rb b/actionpack/lib/action_controller/caching/sweeping.rb
index c7992d7769..c1be264ffb 100644
--- a/actionpack/lib/action_controller/caching/sweeping.rb
+++ b/actionpack/lib/action_controller/caching/sweeping.rb
@@ -87,9 +87,9 @@ module ActionController #:nodoc:
__send__(action_callback_method_name) if respond_to?(action_callback_method_name, true)
end
- def method_missing(method, *arguments)
+ def method_missing(method, *arguments, &block)
return if @controller.nil?
- @controller.__send__(method, *arguments)
+ @controller.__send__(method, *arguments, &block)
end
end
end