Merge branch 'master' into chat-features

This commit is contained in:
Beatrice Olivera
2018-09-04 19:33:26 +01:00
committed by GitHub
9 changed files with 69 additions and 21 deletions

View File

@@ -26,6 +26,13 @@ class ChatRoomsController < ApplicationController
ActionCable.server.broadcast "chat_room_#{params[:room]}", session_params
end
def destroy
# chat_room = ChatRoom.find(params[:id])
# chat_room.destroy
ActionCable.server.broadcast "chat_room_#{params[:id]}", { hangUp: true }
head :ok
end
private
def session_params