mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-07 06:25:19 +02:00
Remove stale route, make accountable routes clearer
This commit is contained in:
parent
607c223746
commit
9a41910db1
1 changed files with 9 additions and 9 deletions
|
@ -164,9 +164,9 @@ Rails.application.routes.draw do
|
||||||
route_for "edit_#{model.accountable_name}", model, options
|
route_for "edit_#{model.accountable_name}", model, options
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :depositories, except: [ :index, :show ]
|
resources :depositories, only: %i[new create edit update]
|
||||||
resources :investments, except: [ :index, :show ]
|
resources :investments, only: %i[new create edit update]
|
||||||
resources :properties, except: [ :index, :show ] do
|
resources :properties, only: %i[new create edit update] do
|
||||||
member do
|
member do
|
||||||
get :balances
|
get :balances
|
||||||
patch :update_balances
|
patch :update_balances
|
||||||
|
@ -175,12 +175,12 @@ Rails.application.routes.draw do
|
||||||
patch :update_address
|
patch :update_address
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
resources :vehicles, except: [ :index, :show ]
|
resources :vehicles, only: %i[new create edit update]
|
||||||
resources :credit_cards, except: [ :index, :show ]
|
resources :credit_cards, only: %i[new create edit update]
|
||||||
resources :loans, except: [ :index, :show ]
|
resources :loans, only: %i[new create edit update]
|
||||||
resources :cryptos, except: [ :index, :show ]
|
resources :cryptos, only: %i[new create edit update]
|
||||||
resources :other_assets, except: [ :index, :show ]
|
resources :other_assets, only: %i[new create edit update]
|
||||||
resources :other_liabilities, except: [ :index, :show ]
|
resources :other_liabilities, only: %i[new create edit update]
|
||||||
|
|
||||||
resources :securities, only: :index
|
resources :securities, only: :index
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue