From e5c18ff2cc666b306d1e4693f2110759902a5561 Mon Sep 17 00:00:00 2001 From: Jason Noble Date: Sat, 7 May 2011 16:15:09 -0600 Subject: Added deprecation warning for Fixture(s) (Use ActiveRecord::Fixture(s)) --- activerecord/lib/active_record/fixtures.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 6d931ba53c..0e3ed7aac7 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -444,6 +444,9 @@ class FixturesFileNotFound < StandardError; end # # Any fixture labeled "DEFAULTS" is safely ignored. +Fixture = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Fixture', 'ActiveRecord::Fixture') +Fixtures = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('Fixtures', 'ActiveRecord::Fixtures') + module ActiveRecord class Fixtures MAX_ID = 2 ** 30 - 1 -- cgit v1.2.3