-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spaces - BYODomains: Fix broken Space/edit page
#74 #1067 Turns out, having the Space routes split into two sections meant some of the updates to the routes did not get applied for spaces with BYO-Domains. This... fixes that...
- Loading branch information
Showing
2 changed files
with
19 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module SpaceRoutes | ||
def self.append_routes(router) | ||
router.resource :authenticated_session, only: %i[new create update destroy show] | ||
router.resources :invitations, only: %i[create destroy index] do | ||
router.resource :rsvp, only: %i[show update] | ||
end | ||
router.resources :rooms, only: %i[show edit update new create destroy] do | ||
Furniture.append_routes(router) | ||
router.resource :waiting_room, only: %i[show update] | ||
router.resources :furniture_placements, only: %i[create edit update destroy] | ||
end | ||
|
||
router.resources :utility_hookups | ||
|
||
router.resources :memberships, only: %I[index show destroy] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters