Skip to content
Browse files

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
  • Loading branch information...
1 parent 3cfea28 commit 1383d1c3b981972723050aeeced26e942f036716 @seckar seckar committed Feb 28, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/fixtures.rb
View
2 activerecord/lib/active_record/fixtures.rb
@@ -237,7 +237,7 @@ def self.instantiate_all_loaded_fixtures(object, load_instances=true)
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

0 comments on commit 1383d1c

Please sign in to comment.
Something went wrong with that request. Please try again.