lib/tasks/georgia.rake in georgia-0.7.5 vs lib/tasks/georgia.rake in georgia-0.7.6
- old
+ new
@@ -9,21 +9,6 @@
Georgia::User.create(first_name: first_name, last_name: last_name, email: email, password: password, password_confirmation: password) do |user|
user.roles << Georgia::Role.all
end
end
- namespace :messages do
-
- desc "Send to Akismet all unverified messages"
- task verify: :environment do
- puts "Check for spam. Currently have #{Georgia::Message.spam.count} spam and #{Georgia::Message.ham.count} ham messages."
- puts "Checking #{Georgia::Message.where(verified_at: nil).count} unverified messages."
- Georgia::Message.where(verified_at: nil).find_each do |message|
- message.update_attributes(spam: message.spam?, verified_at: Time.zone.now)
- end
- puts "Check completed. #{Georgia::Message.spam.count} spam. #{Georgia::Message.ham.count} ham."
- end
-
- end
-
-
end
\ No newline at end of file