Skip to content

Commit

Permalink
Fix for sweepers method_missing missing &block argument [#1581 status…
Browse files Browse the repository at this point in the history
…:committed]

Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
  • Loading branch information
Tys von Gaza authored and dhh committed Jan 27, 2009
1 parent 093f758 commit dd02af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/caching/sweeping.rb
Expand Up @@ -87,9 +87,9 @@ def callback(timing)
__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
Expand Down

0 comments on commit dd02af5

Please sign in to comment.