1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

A fix for older Rails versions

This commit is contained in:
eugenebolshakov 2009-01-15 11:33:12 -05:00 committed by Joe Ferris
parent b49ae5616c
commit 1a69574f48

View file

@ -20,7 +20,7 @@ def Factory (name, attrs = {})
Factory.default_strategy(name, attrs)
end
if defined? Rails
if defined? Rails.configuration
Rails.configuration.after_initialize do
Factory.definition_file_paths = [
File.join(RAILS_ROOT, 'test', 'factories'),