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

Changeset 8339

Show
Ignore:
Timestamp:
12/09/07 04:37:46 (7 months ago)
Author:
bitsweat
Message:

Be careful not to reference ActiveRecord if it isn't loaded, fixing rake test when you're working without a database. [eedn]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/fixtures.rb

    r8219 r8339  
    1010end 
    1111 
    12 class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc: 
     12if defined? ActiveRecord 
     13  class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc: 
     14  end 
     15else 
     16  class FixtureClassNotFound < StandardError #:nodoc: 
     17  end 
    1318end 
    1419