Prefixes to statuses are added now automatically in client

This commit is contained in:
Martin Lensment 2014-09-26 10:47:09 +03:00
parent 96eead47b7
commit 5083062de4
4 changed files with 23 additions and 2 deletions

View file

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