mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Add reserved domains management #2565
This commit is contained in:
parent
b9c8aefd19
commit
8ef8147b06
11 changed files with 132 additions and 20 deletions
|
@ -13,10 +13,12 @@ class Admin::BlockedDomainsController < AdminController
|
|||
|
||||
if bd.update(names: names)
|
||||
flash[:notice] = I18n.t('record_updated')
|
||||
redirect_to :back
|
||||
else
|
||||
@blocked_domains = params[:blocked_domains]
|
||||
flash.now[:alert] = I18n.t('failed_to_update_record')
|
||||
render :index
|
||||
end
|
||||
|
||||
redirect_to :back
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue