instance method
read_fixture_files
Ruby on Rails 3.2.22.5
Since v3.1.12 Last seen in v3.2.22.5 PrivateAvailable in: v3.1.12 v3.2.22.5
Signature
read_fixture_files()
No documentation comment.
Source
# File activerecord/lib/active_record/fixtures.rb, line 663
def read_fixture_files
yaml_files = Dir["#{@fixture_path}/{**,*}/*.yml"].select { |f|
::File.file?(f)
} + [yaml_file_path]
yaml_files.each do |file|
Fixtures::File.open(file) do |fh|
fh.each do |name, row|
fixtures[name] = ActiveRecord::Fixture.new(row, model_class)
end
end
end
end
Defined in activerecord/lib/active_record/fixtures.rb line 663
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Fixtures