Module: SeedFixtures::Core::ClassMethods

Defined in:
lib/seed_fixtures/core.rb

Instance Method Summary collapse

Instance Method Details

#fixtures_from_seedsObject



8
9
10
11
12
13
14
# File 'lib/seed_fixtures/core.rb', line 8

def fixtures_from_seeds
  ActiveSupport.on_load(:active_support_test_case) do
    prepend SeedFixtures::Implementation
  end

  parallelize_setup { SeedFixtures::Implementation.truncate_and_seed }
end