diff options
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/fixtures.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 40fbadc233..7a00b5bb56 100755 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -9,7 +9,12 @@ module YAML #:nodoc: end end -class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc: +if defined? ActiveRecord + class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc: + end +else + class FixtureClassNotFound < StandardError #:nodoc: + end end # Fixtures are a way of organizing data that you want to test against; in short, sample data. They come in 3 flavors: |