diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-02-28 00:40:33 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-02-28 00:40:33 +0000 |
commit | 1383d1c3b981972723050aeeced26e942f036716 (patch) | |
tree | e1d4ff0ed6ae2d7a4811c5793b8d4af12a12f708 /activerecord | |
parent | 3cfea287baa596833bd5e8bda5e12fd03250008f (diff) | |
download | rails-1383d1c3b981972723050aeeced26e942f036716.tar.gz rails-1383d1c3b981972723050aeeced26e942f036716.tar.bz2 rails-1383d1c3b981972723050aeeced26e942f036716.zip |
Change Fixtures.create_fixtures arity to be backwards compatible
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3694 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 7a0ffbf4ce..88b16ee038 100755 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -237,7 +237,7 @@ class Fixtures < YAML::Omap cattr_accessor :all_loaded_fixtures self.all_loaded_fixtures = {} - def self.create_fixtures(fixtures_directory, table_names, class_names) + def self.create_fixtures(fixtures_directory, table_names, class_names = {}) table_names = table_names.flatten.map { |n| n.to_s } connection = block_given? ? yield : ActiveRecord::Base.connection ActiveRecord::Base.silence do |