From efcc312e9edb239eb22fbf3e7f592753bd22e686 Mon Sep 17 00:00:00 2001 From: Joshua Arts Date: Tue, 3 Jul 2018 11:57:45 -0400 Subject: [PATCH] remove ability to change home room --- app/controllers/rooms_controller.rb | 8 ------- .../shared/components/_room_block.html.erb | 21 +++++++++---------- config/routes.rb | 1 - 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/app/controllers/rooms_controller.rb b/app/controllers/rooms_controller.rb index 218eea7e..e922f36b 100644 --- a/app/controllers/rooms_controller.rb +++ b/app/controllers/rooms_controller.rb @@ -90,14 +90,6 @@ class RoomsController < ApplicationController redirect_to @room end - # POST /:room_uid/home - def home - current_user.main_room = @room - current_user.save - - redirect_to @room - end - # POST /:room_uid/:record_id def update_recording meta = { diff --git a/app/views/shared/components/_room_block.html.erb b/app/views/shared/components/_room_block.html.erb index 69d4b2d9..528329b6 100644 --- a/app/views/shared/components/_room_block.html.erb +++ b/app/views/shared/components/_room_block.html.erb @@ -22,22 +22,21 @@ -