Bug #133 ยป 0001-Fix-report.with_changes-to-look-at-status-column.patch
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.
|