mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Prefixes to statuses are added no automatically in admin
This commit is contained in:
parent
5083062de4
commit
69a0d3938f
3 changed files with 18 additions and 1 deletions
|
@ -50,5 +50,14 @@ class DomainStatus < ActiveRecord::Base
|
|||
end
|
||||
ret
|
||||
end
|
||||
|
||||
def statuses_for_admin
|
||||
ret = []
|
||||
STATUSES.each do |x|
|
||||
next unless x.start_with?('server')
|
||||
ret << x.sub('server', '')
|
||||
end
|
||||
ret
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue