Module: SeedFu

Defined in:
lib/seed-fu.rb,
lib/seed-fu/runner.rb,
lib/seed-fu/seeder.rb,
lib/seed-fu/writer.rb,
lib/seed-fu/version.rb,
lib/seed-fu/railtie.rb,
lib/seed-fu/block_hash.rb,
lib/seed-fu/active_record_extension.rb

Constant Summary

Class Method Summary collapse

Class Method Details

.seed(fixture_paths = SeedFu.fixture_paths, filter = nil) ⇒ Object

Load seed data from files

Parameters:

  • fixture_paths (Array) (defaults to: SeedFu.fixture_paths)

    The paths to look for seed files in

  • filter (Regexp) (defaults to: nil)

    If given, only filenames matching this expression will be loaded



27
28
29
# File 'lib/seed-fu.rb', line 27

def self.seed(fixture_paths = SeedFu.fixture_paths, filter = nil)
  Runner.new(fixture_paths, filter).run
end