Skip to content

fix: set room instance variable in room direct destroy#12

Merged
monorkin merged 1 commit into
basecamp:mainfrom
NullFluxKevin:fix-set-room-instance-variable-in-room-direct-destroy
Sep 6, 2025
Merged

fix: set room instance variable in room direct destroy#12
monorkin merged 1 commit into
basecamp:mainfrom
NullFluxKevin:fix-set-room-instance-variable-in-room-direct-destroy

Conversation

@NullFluxKevin

@NullFluxKevin NullFluxKevin commented Sep 5, 2025

Copy link
Copy Markdown
Contributor

This fixes the issue #10

I think the issue could be caused by my last PR #9, where I override the before_action in the child controller (app/controllers/rooms/directs_controller.rb) to set the room instance variable in the edit method.

I'm new to rails and ruby, I just read on inheritance and before_action, i'm hesitant to add show in the child controller's before_action.

Please let me know if the current fix is adequate, I'm happy to learn more about and work more on this. Sorry about the problem caused by my last PR.

@monorkin monorkin merged commit d7c6727 into basecamp:main Sep 6, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants