Extract domain transfers controller

#660
This commit is contained in:
Artur Beljajev 2018-01-22 16:29:37 +02:00
parent d64686777c
commit b11b6f7d8b
10 changed files with 33 additions and 20 deletions

View file

@ -54,7 +54,6 @@ Rails.application.routes.draw do
post 'update', as: 'update'
post 'destroy', as: 'destroy'
get 'renew'
match 'transfer', via: [:post, :get]
get 'edit'
get 'info'
get 'check'
@ -62,6 +61,7 @@ Rails.application.routes.draw do
get 'search_contacts'
end
end
resources :domain_transfers, only: %i[new create]
resources :contacts, constraints: {:id => /[^\/]+(?=#{ ActionController::Renderers::RENDERERS.map{|e| "\\.#{e}\\z"}.join("|") })|[^\/]+/} do
member do