Permalink
Browse files

Added deprecation warning for Fixture(s) (Use ActiveRecord::Fixture(s))

  • Loading branch information...
1 parent 7db2ef4 commit e5c18ff2cc666b306d1e4693f2110759902a5561 @jasonnoble jasonnoble committed May 7, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit e5c18ff

Please sign in to comment.