mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +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
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
dp = add_prefix_to_statuses
|
dp = ignore_empty_statuses
|
||||||
|
|
||||||
if @domain.update(dp)
|
if @domain.update(dp)
|
||||||
flash[:notice] = I18n.t('domain_updated')
|
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) }
|
@other_statuses = @domain.statuses.select { |x| !DomainStatus::SERVER_STATUSES.include?(x) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_prefix_to_statuses
|
def ignore_empty_statuses
|
||||||
dp = domain_params
|
dp = domain_params
|
||||||
dp[:statuses].reject! { |x| x.blank? }
|
dp[:statuses].reject! { |x| x.blank? }
|
||||||
dp
|
dp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue