Project

General

Profile

0001-Fix-report.with_changes-to-look-at-status-column.patch

Frank Sweetser, 12/15/2009 03:06 PM

View differences:

app/models/report.rb
19 19
  named_scope :recent, lambda { |*args| {:conditions => ["reported_at > ?", (args.first || 1.day.ago)]} }
20 20

  
21 21
  # with_changes
22
  named_scope :with_changes, {:conditions => "reported_at != 0"}
22
  named_scope :with_changes, {:conditions => "status != 0"}
23 23

  
24 24
  # a method that save the report values (e.g. values from METRIC)
25 25
  # it is not supported to edit status values after it has been written once.
26
-