[PATCH 1/2] RM 3144 don't set unscoped as default, as this messes up uptime calculations

Tzu-Mainn Chen tzumainn at redhat.com
Tue May 15 17:13:46 UTC 2012


---
 src/app/models/event.rb |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/app/models/event.rb b/src/app/models/event.rb
index 58fd488..c2593f8 100644
--- a/src/app/models/event.rb
+++ b/src/app/models/event.rb
@@ -48,10 +48,6 @@ class Event < ActiveRecord::Base
   scope :lifetime, where(:status_code => [:first_running, :all_running, :some_running, :all_stopped])
   scope :descending_by_created_at, order('created_at DESC')
 
-  def self.all
-    self.unscoped
-  end
-
   # Notifies the Event API if certain conditions are met
   def transmit_event
     # Extract just the old values from change_hash
-- 
1.7.6.5




More information about the aeolus-devel mailing list