Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use full namespace destination for Log class.

  • Loading branch information...
commit 8662be382adb3fc3dc7330436958dd8edcc7fa1a 1 parent e1b3fdd
@kslazarev kslazarev authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tasks/mongoid_search.rake
View
8 tasks/mongoid_search.rake
@@ -2,14 +2,14 @@ namespace :mongoid_search do
desc 'Goes through all documents with search enabled and indexes the keywords.'
task :index => :environment do
if Mongoid::Search.classes.blank?
- Log.log "No model to index keywords.\n"
+ Mongoid::Search::Log.log "No model to index keywords.\n"
else
Mongoid::Search.classes.each do |klass|
- Log.silent = ENV['SILENT']
- Log.log "\nIndexing documents for #{klass.name}:\n"
+ Mongoid::Search::Log.silent = ENV['SILENT']
+ Mongoid::Search::Log.log "\nIndexing documents for #{klass.name}:\n"
klass.index_keywords!
end
- Log.log "\n\nDone.\n"
+ Mongoid::Search::Log.log "\n\nDone.\n"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.