0001-Fix-report.with_changes-to-look-at-status-column.patch
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 |
- |