Fix build_lists#cancel logging. Refs #2161

This commit is contained in:
Pavel Chipiga 2011-11-07 23:41:27 +02:00
parent f3cc511486
commit 55a0da44d6
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class EventLogObserver < ActiveRecord::Observer
def before_update(record)
case record.class
when BuildList
if record.status_changed? and record.status == BUILD_CANCELED
if record.status_changed? and record.status == BuildList::BUILD_CANCELED
ActiveSupport::Notifications.instrument("event_log.observer", :object => record)
end
# when Platform