Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support Spring out of the box

Closes #120
  • Loading branch information...
commit b44b6b106b5275b7c6e1329a1530329547ed64d8 1 parent 8dc4d08
@joshuaclayton joshuaclayton authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.