mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
parent
8dc4d08aa3
commit
b44b6b106b
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@ module FactoryGirl
|
|||
|
||||
config.after_initialize do
|
||||
FactoryGirl.find_definitions
|
||||
|
||||
if defined?(Spring)
|
||||
Spring.after_fork { FactoryGirl.reload }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue