From dd02af5c7e74b4ea0383b0df87824fb2b37f2243 Mon Sep 17 00:00:00 2001 From: Tys von Gaza Date: Mon, 15 Dec 2008 14:38:22 -0700 Subject: Fix for sweepers method_missing missing &block argument [#1581 status:committed] Signed-off-by: David Heinemeier Hansson --- actionpack/lib/action_controller/caching/sweeping.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/caching') 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 -- cgit v1.2.3