Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #46 from kslazarev/fix_log

Use namespace Mongoid::Search for Log class.
  • Loading branch information...
commit dba5bcc653433decbf18ad26ed7409e3a11d88f9 2 parents 99cb4ea + 8662be3
@mauriciozaffari 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.