Sha256: 39d8127165a860ee2dcb27d1eef807d22990ec9831425e76cd300da657ece211

Contents?: true

Size: 324 Bytes

Versions: 15

Compression:

Stored size: 324 Bytes

Contents

class NotificationWorker
  def queue_name
    :help_request_notifications
  end

  attr_accessor :help_request_id

  def initialize(help_request_id)
    self.help_request_id = help_request_id
  end

  def run
    help_request = HelpRequest.find(help_request_id)
    NotificationMailer.notify(help_request).deliver
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
curate-0.6.6 app/workers/notification_worker.rb
curate-0.6.5 app/workers/notification_worker.rb
curate-0.6.4 app/workers/notification_worker.rb
curate-0.6.3 app/workers/notification_worker.rb
curate-0.6.1 app/workers/notification_worker.rb
curate-0.6.0 app/workers/notification_worker.rb
curate-0.5.6 app/workers/notification_worker.rb
curate-0.5.5 app/workers/notification_worker.rb
curate-0.5.4 app/workers/notification_worker.rb
curate-0.5.2 app/workers/notification_worker.rb
curate-0.5.1 app/workers/notification_worker.rb
curate-0.5.0 app/workers/notification_worker.rb
curate-0.4.2 app/workers/notification_worker.rb
curate-0.3.2 app/workers/notification_worker.rb
curate-0.3.1 app/workers/notification_worker.rb