lk | adds sidekiq ui

This commit is contained in:
Loos
2015-09-07 10:41:03 -05:00
parent f4e1f99cf8
commit 21ee498970
5 changed files with 14 additions and 11 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ class Client < ActiveRecord::Base
def self.waiting_list
clients = Client.all
non_voided_clients = clients.select{|client| !client.application_voided}
waiting_list = non_voided_clients.select{|client| !client.completion_date}
waiting_list_with_null_application_dates = non_voided_clients.select{|client| !client.completion_date}
waiting_list = waiting_list_with_null_application_dates.select{|client| !client.application_date.nil?}
waiting_list.sort_by!{|client| client.application_date}
end