From 0dc5789ac7804f1d6c759133cbd5f1f35f5dd035 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 20 Feb 2013 13:23:10 -0500 Subject: [PATCH] fix rake task --- lib/seed-fu-mongoid/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/seed-fu-mongoid/railtie.rb b/lib/seed-fu-mongoid/railtie.rb index ba595c6..11d2163 100644 --- a/lib/seed-fu-mongoid/railtie.rb +++ b/lib/seed-fu-mongoid/railtie.rb @@ -3,7 +3,7 @@ module SeedFuMongoid rake_tasks do namespace :db do desc "Load seed data from db/fixtures" - task :seed_fu do + task :seed_fu => :environment do Dir['db/fixtures/**/*.rb'].each do |file| puts "== Seed from #{file}"