Permalink
Browse files

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...
1 parent b447204 commit 191dfe8c6df0f72b5a9abaea0f754177f48859dc Marcel Molina committed Nov 28, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 railties/CHANGELOG
  2. +1 −1 railties/lib/tasks/databases.rake
View
2 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]
View
2 railties/lib/tasks/databases.rake
@@ -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

0 comments on commit 191dfe8

Please sign in to comment.