Sha256: 6d6636da59c66cf0a6cee7264c4ce56015a36a65c4bb65ea443d41481a0a9f2c

Contents?: true

Size: 297 Bytes

Versions: 32

Compression:

Stored size: 297 Bytes

Contents

module Dorsale::Flyboy::TaskCrons
  def self.send_daily_term_emails!
    ::Dorsale::Flyboy::Task.all.each do |task|
      next if task.done?
      next if task.term != Date.current
      next if task.owner.nil?

      ::Dorsale::Flyboy::TaskMailer.term_email(task).deliver_later
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
dorsale-4.0.0 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.20.0 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.19.1 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.19.0 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.18.0 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.17.0 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.16.0 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.15.0 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.11 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.10 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.9 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.8 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.7 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.6 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.5 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.4 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.3 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.2 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.1 app/crons/dorsale/flyboy/task_crons.rb
dorsale-3.14.0 app/crons/dorsale/flyboy/task_crons.rb