Method: Faucet::EmailsController#drip
- Defined in:
- app/controllers/faucet/emails_controller.rb
#drip ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/faucet/emails_controller.rb', line 10 def drip @emails = Email.where(:sent => false, :time => Faucet.today) @sent = [] @emails.each do |email| puts "Running: #{email.description}." puts eval("::" + email.function) @sent << email email.sent = true email.save end end |