Permalink
Browse files

Merge pull request #30 from garaio/create_db_fix

Fixes requiring the environment when calling rake. Prevented eg creation...
  • Loading branch information...
gernotkogler committed Jul 19, 2012
2 parents a3f524a + 034384f commit 6249723363b4042c164c8b2326b86378160df47b
Showing with 2 additions and 4 deletions.
  1. +2 −4 tasks/xapian_rebuild_index.rake
@@ -1,11 +1,9 @@
# encoding: utf-8
-
-require "#{Rails.root}/config/environment"
require "xapian_db"
namespace :xapian do
desc "rebuild the xapian index"
- task :rebuild_index do
+ task :rebuild_index => :environment do
XapianDb.rebuild_xapian_index :verbose => true
end
-end
+end

0 comments on commit 6249723

Please sign in to comment.