Permalink
Browse files

Don't used defined? on a scoped constant since it results in a const_…

…missing call.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a5a54ae commit eecbd106a76469d99efc2166da9c306555006a35 @jeremy jeremy committed Dec 13, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/caching.rb
@@ -517,7 +517,7 @@ def cache_sweeper(*sweepers)
end
end
- if defined?(ActiveRecord::Observer)
+ if defined?(ActiveRecord) and defined?(ActiveRecord::Observer)
class Sweeper < ActiveRecord::Observer #:nodoc:
attr_accessor :controller

0 comments on commit eecbd10

Please sign in to comment.