Permalink
Browse files

adding some output

  • Loading branch information...
1 parent 7cb75d9 commit d6081e6a4da63243a77d17de21f3d3b1154a9733 @taelor committed Mar 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/tasks/scheduled_emails.rake
@@ -1,8 +1,9 @@
task :deliver_morning_emails => :environment do
current_episode = Episode.where(:air_datetime.gt => Date.today).last
- EpisodeMailer.schedule(current_episode).deliver
+ puts "Delivering This week's schedule"
+ puts EpisodeMailer.schedule(current_episode).deliver
Episode.where(:recording_datetime.gt => Date.today).reverse.each do |episode|
- EpisodeMailer.needed_items(episode).deliver
+ puts EpisodeMailer.needed_items(episode).deliver
end
end

0 comments on commit d6081e6

Please sign in to comment.