diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-10 10:59:35 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-10 11:08:18 -0700 |
commit | 714fea81e4843de57431573bc2d2dac9c60e4b88 (patch) | |
tree | b6bb888c2e06fc298697f4d04356aef1d18737c7 /activerecord | |
parent | 2ea33d6b47e7a07c7a9161bbefb0954afdf476c9 (diff) | |
download | rails-714fea81e4843de57431573bc2d2dac9c60e4b88.tar.gz rails-714fea81e4843de57431573bc2d2dac9c60e4b88.tar.bz2 rails-714fea81e4843de57431573bc2d2dac9c60e4b88.zip |
deprecating read_csv_fixture_files method
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/fixtures.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 0e3ed7aac7..061b3090d7 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -13,6 +13,7 @@ require 'active_support/core_ext/array/wrap' require 'active_support/core_ext/object/blank' require 'active_support/core_ext/logger' require 'active_support/ordered_hash' +require 'active_support/core_ext/module/deprecation' if defined? ActiveRecord class FixtureClassNotFound < ActiveRecord::ActiveRecordError #:nodoc: @@ -752,6 +753,7 @@ module ActiveRecord fixtures["#{@class_name.to_s.underscore}_#{i+=1}"] = ActiveRecord::Fixture.new(data, model_class) end end + deprecate :read_csv_fixture_files def yaml_file_path "#{@fixture_path}.yml" |