Skip to content
Browse files

Support Spring out of the box

Closes #120
  • Loading branch information...
1 parent 8dc4d08 commit b44b6b106b5275b7c6e1329a1530329547ed64d8 @joshuaclayton joshuaclayton committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/factory_girl_rails/railtie.rb
View
4 lib/factory_girl_rails/railtie.rb
@@ -19,6 +19,10 @@ class Railtie < Rails::Railtie
config.after_initialize do
FactoryGirl.find_definitions
+
+ if defined?(Spring)
+ Spring.after_fork { FactoryGirl.reload }
+ end
end
end
end

0 comments on commit b44b6b1

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