From: niwatori24 <62463593+niwatori24@users.noreply.github.com> Date: Sun, 9 Aug 2020 23:50:43 +0000 (+0900) Subject: Use default :edit routing (#14535) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=1326c575062191b5c6f8d4363279209da73ae576;p=mastodon.git Use default :edit routing (#14535) --- diff --git a/config/routes.rb b/config/routes.rb index 349db0934..b55221925 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -171,11 +171,7 @@ Rails.application.routes.draw do get '/dashboard', to: 'dashboard#index' resources :domain_allows, only: [:new, :create, :show, :destroy] - resources :domain_blocks, only: [:new, :create, :show, :destroy, :update] do - member do - get :edit - end - end + resources :domain_blocks, only: [:new, :create, :show, :destroy, :update, :edit] resources :email_domain_blocks, only: [:index, :new, :create, :destroy] resources :action_logs, only: [:index]