mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Refactor #2623
This commit is contained in:
parent
1e5eb158e5
commit
34014cf5f7
3 changed files with 4 additions and 5 deletions
|
@ -61,7 +61,6 @@ class Admin::DomainsController < AdminController
|
|||
end
|
||||
|
||||
def build_associations
|
||||
@domain.domain_statuses.build if @domain.domain_statuses.empty?
|
||||
@server_statuses = @domain.statuses.select { |x| DomainStatus::SERVER_STATUSES.include?(x) }
|
||||
@server_statuses = [nil] if @server_statuses.empty?
|
||||
@other_statuses = @domain.statuses.select { |x| !DomainStatus::SERVER_STATUSES.include?(x) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue