Project

General

Profile

Bug #133 ยป 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
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-1/1)