Module: Bluff
- Extended by:
- Builder::ClassMethods, Configuration::ClassMethods
- Defined in:
- lib/bluff/support/support.rb,
lib/bluff.rb,
lib/bluff/builder.rb,
lib/bluff/version.rb,
lib/bluff/configuration.rb,
lib/bluff/support/persistence/base.rb
Overview
Here’s how fabricator is autoloading fabrications
def find_definitions
path_prefix = defined?(Rails) ? Rails.root : "."
Fabrication::Config.fabricator_dir.each do |folder|
Dir.glob(File.join(path_prefix, folder, '**', '*fabricator.rb')).sort.each do |file|
load file
end
end
end
Defined Under Namespace
Modules: Builder, Configuration, Support
Constant Summary collapse
- VERSION =
"0.1.0"