Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 61cafca6eaca50c3dc5a46edd1becf0b35e78b54 1 parent f871f33
@dhh dhh authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.