mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Rename #2623
This commit is contained in:
parent
af1a808d7b
commit
1e5eb158e5
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ class Admin::DomainsController < AdminController
|
|||
end
|
||||
|
||||
def update
|
||||
dp = add_prefix_to_statuses
|
||||
dp = ignore_empty_statuses
|
||||
|
||||
if @domain.update(dp)
|
||||
flash[:notice] = I18n.t('domain_updated')
|
||||
|
@ -67,7 +67,7 @@ class Admin::DomainsController < AdminController
|
|||
@other_statuses = @domain.statuses.select { |x| !DomainStatus::SERVER_STATUSES.include?(x) }
|
||||
end
|
||||
|
||||
def add_prefix_to_statuses
|
||||
def ignore_empty_statuses
|
||||
dp = domain_params
|
||||
dp[:statuses].reject! { |x| x.blank? }
|
||||
dp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue