Permalink
Browse files

Make rake load_fixtures work with the new, flexible, fixtures api. [R…

…ick Olson]. Closes #3995

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent a117d68 commit 17ff70ac84b48ffc437551446814e77f1e0f0428 @NZKoz NZKoz committed Feb 28, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/fixtures.rb
@@ -238,7 +238,7 @@ def self.instantiate_all_loaded_fixtures(object, load_instances=true)
self.all_loaded_fixtures = {}
def self.create_fixtures(fixtures_directory, table_names, class_names = {})
- table_names = table_names.flatten.map { |n| n.to_s }
+ table_names = [table_names].flatten.map { |n| n.to_s }
connection = block_given? ? yield : ActiveRecord::Base.connection
ActiveRecord::Base.silence do
fixtures_map = {}

0 comments on commit 17ff70a

Please sign in to comment.