Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Apply [3196] to stable. Make load_fixtures include csv fixtures. Closes

#3053.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@3197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 50c5b2817f4009eacafb7c294c5ef9bda0a907aa 1 parent 7867266
Marcel Molina authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  railties/CHANGELOG
  2. +1 −1  railties/lib/tasks/databases.rake
2  railties/CHANGELOG
View
@@ -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]
* Model generator: correct relative path to test_helper in unit test. [Jeremy Kemper]
2  railties/lib/tasks/databases.rake
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.