diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-30 08:33:25 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-30 08:33:25 +0000 |
commit | c29cfe389e5ba27e75d05a23823ebe7abe22e9d0 (patch) | |
tree | 880048dae388bed33b78d204cbe6d7ffa3bf8cc5 /actionpack/lib | |
parent | 6d0ddd818aec1704b48fe67fd4f1e15de3dc549e (diff) | |
download | rails-c29cfe389e5ba27e75d05a23823ebe7abe22e9d0.tar.gz rails-c29cfe389e5ba27e75d05a23823ebe7abe22e9d0.tar.bz2 rails-c29cfe389e5ba27e75d05a23823ebe7abe22e9d0.zip |
Check definition on constant not string
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1250 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 2 |
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 |