diff --git a/lib/factory_girl_rails/railtie.rb b/lib/factory_girl_rails/railtie.rb index 707be0b..d247130 100644 --- a/lib/factory_girl_rails/railtie.rb +++ b/lib/factory_girl_rails/railtie.rb @@ -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