]> cat aescling's git repositories - mastodon.git/commitdiff
Use default :edit routing (#14535)
authorniwatori24 <62463593+niwatori24@users.noreply.github.com>
Sun, 9 Aug 2020 23:50:43 +0000 (08:50 +0900)
committerGitHub <noreply@github.com>
Sun, 9 Aug 2020 23:50:43 +0000 (01:50 +0200)
config/routes.rb

index 349db093431ba36627c35aa845c00e1351368279..b55221925a0401a00ed1b7b1c725cf097577efac 100644 (file)
@@ -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]