Method: Factory.find_definitions

Defined in:
lib/factory_girl/factory.rb

.find_definitionsObject

:nodoc:



271
272
273
274
275
276
277
278
279
280
281
# File 'lib/factory_girl/factory.rb', line 271

def self.find_definitions #:nodoc:
  definition_file_paths.each do |path|
    require("#{path}.rb") if File.exists?("#{path}.rb")

    if File.directory? path
      Dir[File.join(path, '*.rb')].each do |file|
        require file
      end
    end
  end
end