From c0080388a168188007688b3e53daf749cb94d008 Mon Sep 17 00:00:00 2001 From: Vladimir Sharshov Date: Mon, 12 Dec 2011 20:51:38 +0400 Subject: [PATCH] Close #24. Uninitialized constant BuildList::BUILD_STARTED --- app/models/build_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 75e00b86d..863364f32 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -55,7 +55,7 @@ class BuildList < ActiveRecord::Base scope :recent, order("updated_at DESC") scope :current, lambda { outdatable_statuses = [BuildServer::SUCCESS, BuildServer::ERROR, BuildServer::PLATFORM_NOT_FOUND, BuildServer::PLATFORM_PENDING, BuildServer::PROJECT_NOT_FOUND, BuildServer::PROJECT_VERSION_NOT_FOUND] - where(["status in (?) OR (status in (?) AND notified_at >= ?)", [WAITING_FOR_RESPONSE, BUILD_PENDING, BUILD_STARTED], outdatable_statuses, Time.now - 2.days]) + where(["status in (?) OR (status in (?) AND notified_at >= ?)", [WAITING_FOR_RESPONSE, BUILD_PENDING, BuildServer::BUILD_STARTED], outdatable_statuses, Time.now - 2.days]) } scope :for_status, lambda {|status| where(:status => status) } scope :scoped_to_arch, lambda {|arch| where(:arch_id => arch) }