aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-04-17 10:50:47 +0000
committerfrancis <francis>2008-04-17 10:50:47 +0000
commit71a4e5bc9ad299337681043454b6f17841ef6186 (patch)
tree6ff1b3ec8c1a694e12d6f75774d770249549c93a /app/models/info_request.rb
parent2ab83d0c9c5b093a3330b475614b891460652d80 (diff)
Store time of description.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 05afb3950..3fada2321 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -22,7 +22,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: info_request.rb,v 1.89 2008-04-16 02:02:29 francis Exp $
+# $Id: info_request.rb,v 1.90 2008-04-17 10:50:47 francis Exp $
require 'digest/sha1'
@@ -283,6 +283,10 @@ public
event.last_described_at = Time.now()
event.save!
end
+ if event.last_described_at.nil?
+ event.last_described_at = Time.now()
+ event.save!
+ end
curr_state = nil
end
end