Fix mailers and cron to work with rails 3