cirandas.net

ref: master

app/jobs/mailing_job.rb


1
2
3
4
5
6
7
8
class MailingJob < Struct.new(:mailing_id)
  def perform
    mailing = Mailing.find(mailing_id)
    Noosfero.with_locale(mailing.locale) do
      mailing.deliver
    end
  end
end