From 2ac67358a3ce6bf528502dd4c141061d261c2ffb Mon Sep 17 00:00:00 2001 From: ayaya Date: Fri, 13 Jan 2012 14:17:19 +0800 Subject: prevent the cache sweeper ignores NoMethodError --- actionpack/lib/action_controller/caching/sweeping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/caching/sweeping.rb b/actionpack/lib/action_controller/caching/sweeping.rb index bb176ca3f9..cc1fa23935 100644 --- a/actionpack/lib/action_controller/caching/sweeping.rb +++ b/actionpack/lib/action_controller/caching/sweeping.rb @@ -93,7 +93,7 @@ module ActionController #:nodoc: end def method_missing(method, *arguments, &block) - super unless @controller + return super unless @controller @controller.__send__(method, *arguments, &block) end end -- cgit v1.2.3