aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert_changed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/alert_changed.rb')
-rw-r--r--lib/mauve/alert_changed.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/alert_changed.rb b/lib/mauve/alert_changed.rb
index 3c5fa0f..6f1a717 100644
--- a/lib/mauve/alert_changed.rb
+++ b/lib/mauve/alert_changed.rb
@@ -28,7 +28,7 @@ module Mauve
protected
def do_set_timestamps(context = :default)
- self.at = Time.now unless self.original_attributes.has_key?("at")
+ self.at = Time.now if self.dirty?
end
public