Permalink
Browse files

Disregard expire methods when the controller hasnt been set, which es…

…sentially 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
  • Loading branch information...
1 parent f871f33 commit 61cafca6eaca50c3dc5a46edd1becf0b35e78b54 @dhh dhh committed Apr 27, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_controller/caching.rb
View
1 actionpack/lib/action_controller/caching.rb
@@ -469,6 +469,7 @@ def callback(timing)
end
def method_missing(method, *arguments)
+ return if @controller.nil?
@controller.send(method, *arguments)
end
end

0 comments on commit 61cafca

Please sign in to comment.