[#343] fix errors

This commit is contained in:
Alexander Machehin 2014-01-21 11:02:26 +06:00
parent c9cbb46daf
commit fde57baac8
1 changed files with 4 additions and 4 deletions

View File

@ -11,10 +11,10 @@ class BuildList::Item < ActiveRecord::Base
nil => :unknown,
GIT_ERROR => :git_error,
# BuildList:DEPENDENCIES_ERROR: :dependencies_error,
BuildList:SUCCESS: :success,
BuildList:BUILD_STARTED: :build_started,
BuildList:BUILD_ERROR: :build_error,
BuildList:BUILD_CANCELED: :build_canceled
BuildList::SUCCESS => :success,
BuildList::BUILD_STARTED => :build_started,
BuildList::BUILD_ERROR => :build_error,
BuildList::BUILD_CANCELED => :build_canceled
}
scope :recent, order("#{table_name}.level ASC, #{table_name}.name ASC")