Fix mailer warnings
This commit is contained in:
parent
8a4b65c4a5
commit
2687da357a
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ class FeedbackController < ApplicationController
|
|||
|
||||
def create
|
||||
if params[:message].present?
|
||||
Mailer.feedback(current_user, params[:message]).deliver
|
||||
Mailer.feedback(current_user, params[:message]).deliver_now
|
||||
redirect_to root_url, notice: t('feedback.create.notice')
|
||||
else
|
||||
render :action => 'new'
|
||||
|
|
|
@ -10,7 +10,7 @@ class InvitesController < ApplicationController
|
|||
authenticate_membership_or_admin params[:invite][:group_id]
|
||||
@invite = Invite.new(params[:invite])
|
||||
if @invite.save
|
||||
Mailer.invite(@invite).deliver
|
||||
Mailer.invite(@invite).deliver_now
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
|
|
@ -18,7 +18,7 @@ class LoginController < ApplicationController
|
|||
user.reset_password_token = user.new_random_password(16)
|
||||
user.reset_password_expires = Time.now.advance(:days => 2)
|
||||
if user.save
|
||||
Mailer.reset_password(user).deliver
|
||||
Mailer.reset_password(user).deliver_now
|
||||
logger.debug("Sent password reset email to #{user.email}.")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace :foodsoft do
|
|||
rake_say "Send notifications for #{task.name} to .."
|
||||
for user in task.users
|
||||
begin
|
||||
Mailer.upcoming_tasks(user, task).deliver if user.settings.notify['upcoming_tasks'] == 1
|
||||
Mailer.upcoming_tasks(user, task).deliver_now if user.settings.notify['upcoming_tasks'] == 1
|
||||
rescue
|
||||
rake_say "deliver aborted for #{user.email}.."
|
||||
end
|
||||
|
@ -25,7 +25,7 @@ namespace :foodsoft do
|
|||
for user in workgroup.users
|
||||
if user.settings.messages['send_as_email'] == "1" && !user.email.blank?
|
||||
begin
|
||||
Mailer.not_enough_users_assigned(task, user).deliver
|
||||
Mailer.not_enough_users_assigned(task, user).deliver_now
|
||||
rescue
|
||||
rake_say "deliver aborted for #{user.email}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue