From ad455c8504ca7a8834621708c7dc6278843236be Mon Sep 17 00:00:00 2001 From: NullFluxKevin Date: Fri, 5 Sep 2025 16:06:46 -0400 Subject: [PATCH] fix: set room instance variable in room direct destroy --- app/controllers/rooms/directs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/rooms/directs_controller.rb b/app/controllers/rooms/directs_controller.rb index 5d67a2a..dc31090 100644 --- a/app/controllers/rooms/directs_controller.rb +++ b/app/controllers/rooms/directs_controller.rb @@ -1,5 +1,5 @@ class Rooms::DirectsController < RoomsController - before_action :set_room, only: %i[ edit ] + before_action :set_room, only: %i[ edit destroy ] def new @room = Rooms::Direct.new end