From fcfbbe01551eaa57efe5e2a7fc336a95007a2670 Mon Sep 17 00:00:00 2001 From: Frank Sweetser Date: Tue, 15 Dec 2009 10:03:43 -0500 Subject: [PATCH] Fix report.with_changes to look at status column --- app/models/report.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/models/report.rb b/app/models/report.rb index 5ce332e..9b62a1a 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -19,7 +19,7 @@ class Report < ActiveRecord::Base named_scope :recent, lambda { |*args| {:conditions => ["reported_at > ?", (args.first || 1.day.ago)]} } # with_changes - named_scope :with_changes, {:conditions => "reported_at != 0"} + named_scope :with_changes, {:conditions => "status != 0"} # a method that save the report values (e.g. values from METRIC) # it is not supported to edit status values after it has been written once. -- 1.6.5.2