From 1383d1c3b981972723050aeeced26e942f036716 Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Tue, 28 Feb 2006 00:40:33 +0000 Subject: 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 --- activerecord/lib/active_record/fixtures.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3