提交 714fea81 编写于 作者: A Aaron Patterson

deprecating read_csv_fixture_files method

上级 2ea33d6b
......@@ -13,6 +13,7 @@
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 @@ def read_csv_fixture_files
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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册