From 9a41910db1efbec92371a9676cec88089302bc01 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Fri, 18 Jul 2025 05:44:01 -0400 Subject: [PATCH] Remove stale route, make accountable routes clearer --- config/routes.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 0c89bb0b..e2817432 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -164,9 +164,9 @@ Rails.application.routes.draw do route_for "edit_#{model.accountable_name}", model, options end - resources :depositories, except: [ :index, :show ] - resources :investments, except: [ :index, :show ] - resources :properties, except: [ :index, :show ] do + resources :depositories, only: %i[new create edit update] + resources :investments, only: %i[new create edit update] + resources :properties, only: %i[new create edit update] do member do get :balances patch :update_balances @@ -175,12 +175,12 @@ Rails.application.routes.draw do patch :update_address end end - resources :vehicles, except: [ :index, :show ] - resources :credit_cards, except: [ :index, :show ] - resources :loans, except: [ :index, :show ] - resources :cryptos, except: [ :index, :show ] - resources :other_assets, except: [ :index, :show ] - resources :other_liabilities, except: [ :index, :show ] + resources :vehicles, only: %i[new create edit update] + resources :credit_cards, only: %i[new create edit update] + resources :loans, only: %i[new create edit update] + resources :cryptos, only: %i[new create edit update] + resources :other_assets, only: %i[new create edit update] + resources :other_liabilities, only: %i[new create edit update] resources :securities, only: :index