mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Make load_fixtures include csv fixtures. Closes #3053.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* Make load_fixtures include csv fixtures. #3053. [me@mdaines.com]
|
||||
|
||||
* Fix freeze_gems so that the latest rails version is dumped by default. [Nicholas Seckar]
|
||||
|
||||
* script/plugin: handle root paths and plugin names which contain spaces. #2995 [justin@aspect.net]
|
||||
|
||||
@@ -8,7 +8,7 @@ desc "Load fixtures into the current environment's database"
|
||||
task :load_fixtures => :environment do
|
||||
require 'active_record/fixtures'
|
||||
ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
||||
Dir.glob(File.join(RAILS_ROOT, 'test', 'fixtures', '*.yml')).each do |fixture_file|
|
||||
Dir.glob(File.join(RAILS_ROOT, 'test', 'fixtures', '*.{yml,csv}')).each do |fixture_file|
|
||||
Fixtures.create_fixtures('test/fixtures', File.basename(fixture_file, '.*'))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user