Skip to content

Commit 153ecd0

Browse files
technicalpicklesjferris
authored andcommitted
Moved find_definition into after_initialize block.
1 parent 635ecee commit 153ecd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/factory_girl.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def Factory (name, attrs = {})
1919
File.join(RAILS_ROOT, 'test', 'factories'),
2020
File.join(RAILS_ROOT, 'spec', 'factories')
2121
]
22+
Factory.find_definitions
2223
end
24+
else
25+
Factory.find_definitions
2326
end
2427

25-
Factory.find_definitions

0 commit comments

Comments
 (0)