From 079657625d213c772e4ce26b197d54fec4052ff8 Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Fri, 8 Feb 2013 12:03:14 -0500 Subject: [PATCH] Require factory_girl_rails explicitly in generator This resolves an issue where factory_girl_rails won't get required if you only have factory_girl_rails declared in the :test group of a Rails app. Closes #89 --- lib/generators/factory_girl/model/model_generator.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/generators/factory_girl/model/model_generator.rb b/lib/generators/factory_girl/model/model_generator.rb index 899bed3..d01cbcb 100644 --- a/lib/generators/factory_girl/model/model_generator.rb +++ b/lib/generators/factory_girl/model/model_generator.rb @@ -1,4 +1,5 @@ require 'generators/factory_girl' +require 'factory_girl_rails' module FactoryGirl module Generators