Class: InformAdminJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- InformAdminJob
- Defined in:
- app/jobs/inform_admin_job.rb
Overview
main class for jobs focusing on mel delivery to the site admin
Instance Method Summary collapse
-
#perform(current_user, text) ⇒ Object
deliver electronic message to site admin to report on current_user activity
the text message should have been prepared somewhere else (in a controller).
Instance Method Details
#perform(current_user, text) ⇒ Object
deliver electronic message to site admin to report on current_user activity
the text message should have been prepared somewhere else (in a controller)
10 11 12 |
# File 'app/jobs/inform_admin_job.rb', line 10 def perform(current_user,text) UserMailer.inform_admin(current_user,text).deliver_now end |