Prefixes to statuses are added no automatically in admin

This commit is contained in:
Martin Lensment 2014-09-26 10:52:54 +03:00
parent 5083062de4
commit 69a0d3938f
3 changed files with 18 additions and 1 deletions

View file

@ -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