Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make load_fixtures include csv fixtures. Closes #3053.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
Marcel Molina committed Nov 28, 2005
1 parent b447204 commit 191dfe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
@@ -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]
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/tasks/databases.rake
Expand Up @@ -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
Expand Down

0 comments on commit 191dfe8

Please sign in to comment.