mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
A fix for older Rails versions
This commit is contained in:
parent
b49ae5616c
commit
1a69574f48
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ def Factory (name, attrs = {})
|
||||||
Factory.default_strategy(name, attrs)
|
Factory.default_strategy(name, attrs)
|
||||||
end
|
end
|
||||||
|
|
||||||
if defined? Rails
|
if defined? Rails.configuration
|
||||||
Rails.configuration.after_initialize do
|
Rails.configuration.after_initialize do
|
||||||
Factory.definition_file_paths = [
|
Factory.definition_file_paths = [
|
||||||
File.join(RAILS_ROOT, 'test', 'factories'),
|
File.join(RAILS_ROOT, 'test', 'factories'),
|
||||||
|
|
Loading…
Reference in a new issue