Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3298

Show
Ignore:
Timestamp:
12/13/05 18:05:31 (3 years ago)
Author:
bitsweat
Message:

Don't used defined? on a scoped constant since it results in a const_missing call.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/caching.rb

    r3117 r3298  
    518518    end 
    519519 
    520     if defined?(ActiveRecord::Observer) 
     520    if defined?(ActiveRecord) and defined?(ActiveRecord::Observer) 
    521521      class Sweeper < ActiveRecord::Observer #:nodoc: 
    522522        attr_accessor :controller