From 61cafca6eaca50c3dc5a46edd1becf0b35e78b54 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 27 Apr 2005 17:40:51 +0000 Subject: Disregard expire methods when the controller hasnt been set, which essentially makes it such that the record observer callbacks are ignored when the sweeper shouldnt be active git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/caching.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index b6861cb081..0254c2d98d 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -469,6 +469,7 @@ module ActionController #:nodoc: end def method_missing(method, *arguments) + return if @controller.nil? @controller.send(method, *arguments) end end -- cgit v1.2.3