diff options
author | Jason Noble <perlwizard@gmail.com> | 2011-05-07 16:15:09 -0600 |
---|---|---|
committer | Jason Noble <perlwizard@gmail.com> | 2011-05-07 16:15:09 -0600 |
commit | e5c18ff2cc666b306d1e4693f2110759902a5561 (patch) | |
tree | 40b84fc570e4bb06aae9e9edd089243792667df8 /activerecord/lib/active_record | |
parent | 7db2ef47a1966113dd5d52c2f620b8496acabf56 (diff) | |
download | rails-e5c18ff2cc666b306d1e4693f2110759902a5561.tar.gz rails-e5c18ff2cc666b306d1e4693f2110759902a5561.tar.bz2 rails-e5c18ff2cc666b306d1e4693f2110759902a5561.zip |
Added deprecation warning for Fixture(s) (Use ActiveRecord::Fixture(s))
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |