Ранее я настроил почтовую программу для отправки мне писем на все учетные записи пользователей. Но сейчас я пытаюсь отладить его. Так что я полностью его распустил, и он все еще отправляет мне письма.
У меня нет абсолютно никаких рассуждений или понимания того, почему. Безумие! : D
контроллер
def org_blast_send
Delayed::Job.enqueue OrgBlast.new(params[:subject], params[:editor1])
redirect_to org_blast_admin_email_blast_path
end
org_blast.rb
class OrgBlast < Struct.new(:subject, :editor1)
def perform
# You see? There is absolute nothing here but it still sends an email.
# However, if I rename this file, the website fails looking for it.
end
end
notifier.rb
def org_blast(org, subject, message)
subject subject
from NOTIFIER_EMAIL
recipients org.users.first.email
sent_on Time.zone.now
body :user => org.users.first.first_name + ' ' + org.users.first.last_name, :message => message
content_type "text/html"
end