From 609870c26467a1ff5d792fc1712dafe93733b3c4 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 8 Dec 2012 09:44:02 -0500 Subject: [PATCH] removing puts, and fixing File.join --- db/seeds.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index bcc1fe8..e1d1d40 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -7,9 +7,8 @@ # Mayor.create(name: 'Emanuel', city: cities.first) require 'active_record/fixtures' -Dir.glob(File.join(Rails.root, 'test', 'fixtures', '**/*.{yml,csv}')).each do |fixture_file, something| - puts fixture_file - puts File.dirname(fixture_file) +#Load defaults from db/seed/fixtures +Dir.glob(File.join(Rails.root, 'db', 'seed', 'fixtures', '**', '*.{yml,csv}')).each do |fixture_file, something| ActiveRecord::Fixtures.create_fixtures(File.dirname(fixture_file), File.basename(fixture_file, '.*')) end