1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #44660 from julianrubisch/patch-1

Fix ChatRelayJob definition in Testing Guide [ci-skip]
This commit is contained in:
Jonathan Hefner 2022-03-12 11:31:11 -06:00 committed by GitHub
commit c3d4ab00b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1950,7 +1950,7 @@ If you want to test the broadcasting made with `Channel.broadcast_to`, you shoul
```ruby
# app/jobs/chat_relay_job.rb
class ChatRelayJob < ApplicationJob
def perform_later(room, message)
def perform(room, message)
ChatChannel.broadcast_to room, text: message
end
end