Sha256: 8f369a897a8d89fa0ff9682e28d4577a4b86fe76bd9aada3c26c3950e90fb68b

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

Application.class_eval do
  
  get "/#{environment == :production ? $secret_key : 'cron'}" do
    IncomingMail.process!
    User.reset_users!
    User.reset_spent_today!
    User.send_emails! do |user|
      haml(:email, :layout => false, :locals => { :u => user })
    end
    true
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
winton-sum-0.1.0 lib/sum/controller/cron.rb
winton-sum-0.1.1 lib/sum/controller/cron.rb
sum-0.1.2 lib/sum/controller/cron.rb
sum-0.1.1 lib/sum/controller/cron.rb