diff --git a/app/models/event_log_observer.rb b/app/models/event_log_observer.rb index 21436ea75..bee6593d2 100644 --- a/app/models/event_log_observer.rb +++ b/app/models/event_log_observer.rb @@ -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