mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-03-11 20:55:16 +09:00
7 lines
199 B
Ruby
7 lines
199 B
Ruby
module Message::Broadcasts
|
|
def broadcast_create
|
|
broadcast_append_to room, :messages, target: [ room, :messages ]
|
|
ActionCable.server.broadcast("unread_rooms", { roomId: room.id })
|
|
end
|
|
end
|