Class: TableJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- TableJob
- Defined in:
- app/jobs/table_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(table_list_id, user_id) ⇒ Object
4 5 6 7 8 9 |
# File 'app/jobs/table_job.rb', line 4 def perform(table_list_id, user_id) @table_list = TableList.find(table_list_id) @table_list.run ActionCable.server.broadcast "user:#{user_id}", body: '<i class="green checkmark icon"></i>', done_id: table_list_id end |