diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-02-28 20:18:02 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-02-28 20:18:02 +0000 |
commit | 17ff70ac84b48ffc437551446814e77f1e0f0428 (patch) | |
tree | b0f7f84cb64b31e810120c96f3bb5cff7ff08743 /activerecord | |
parent | a117d68f0f6935a987609b28191ea8efd3da6cea (diff) | |
download | rails-17ff70ac84b48ffc437551446814e77f1e0f0428.tar.gz rails-17ff70ac84b48ffc437551446814e77f1e0f0428.tar.bz2 rails-17ff70ac84b48ffc437551446814e77f1e0f0428.zip |
Make rake load_fixtures work with the new, flexible, fixtures api. [Rick Olson]. Closes #3995
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rwxr-xr-x | activerecord/lib/active_record/fixtures.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 88b16ee038..f07c526672 100755 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -238,7 +238,7 @@ class Fixtures < YAML::Omap 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 = {} |