mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
3cfea287ba
commit
1383d1c3b9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue