mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 19:48:28 +02:00
Prefixes to statuses are added now automatically in client
This commit is contained in:
parent
96eead47b7
commit
5083062de4
4 changed files with 23 additions and 2 deletions
|
@ -40,4 +40,15 @@ class DomainStatus < ActiveRecord::Base
|
|||
]
|
||||
}
|
||||
end
|
||||
|
||||
class << self
|
||||
def statuses_for_client
|
||||
ret = []
|
||||
STATUSES.each do |x|
|
||||
next unless x.start_with?('client')
|
||||
ret << x.sub('client', '')
|
||||
end
|
||||
ret
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue