aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/action_controller/caching.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb
index 92eb8770df..5ea5ab94ec 100644
--- a/actionpack/lib/action_controller/caching.rb
+++ b/actionpack/lib/action_controller/caching.rb
@@ -443,7 +443,7 @@ module ActionController #:nodoc:
end
end
- if defined?("ActiveRecord")
+ if defined?(ActiveRecord::Observer)
class Sweeper < ActiveRecord::Observer
attr_accessor :controller