Skip to content
This repository has been archived by the owner on Sep 7, 2019. It is now read-only.

Commit

Permalink
Add support back in for subdirectory requires.
Browse files Browse the repository at this point in the history
Poor old rails 2.x was forgotten about in fc8ce3a.

Closes thoughtbot#65
  • Loading branch information
zetter authored and joshuaclayton committed Jun 28, 2011
1 parent dd7aa22 commit 8c45431
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/factory_girl/rails2.rb
@@ -1 +1,7 @@
Rails.configuration.after_initialize { FactoryGirl.find_definitions }
Rails.configuration.after_initialize do
FactoryGirl.definition_file_paths = [
File.join(Rails.root, 'test', 'factories'),
File.join(Rails.root, 'spec', 'factories')
]
FactoryGirl.find_definitions
end

0 comments on commit 8c45431

Please sign in to comment.