aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-12 16:07:13 +0000
committerfrancis <francis>2008-03-12 16:07:13 +0000
commit938306b88df6c6734566ea7995bf92da9862efc4 (patch)
treefb33992562f3f1cff0f83e00207d7472b844f074 /app/models/info_request.rb
parentfacda1bfffb9d91da6a2f2e22b2345590e452f96 (diff)
Make users all have their own URL, rather than sharing if they have the same name.
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index cdd9badb0..793506dfe 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -1,5 +1,5 @@
# == Schema Information
-# Schema version: 39
+# Schema version: 41
#
# Table name: info_requests
#
@@ -13,6 +13,7 @@
# awaiting_description :boolean default(false), not null
# prominence :string(255) default("normal"), not null
# url_title :text not null
+# solr_up_to_date :boolean default(false), not null
#
# models/info_request.rb:
@@ -21,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.60 2008-03-11 08:14:29 francis Exp $
+# $Id: info_request.rb,v 1.61 2008-03-12 16:07:13 francis Exp $
require 'digest/sha1'
@@ -126,7 +127,7 @@ public
end
# For request with same name as others, tag on the request numeric id
while not InfoRequest.find_by_url_title(url_title, :conditions => ["id <> ?", self.id] ).nil?
- url_title += "-" + self.id.to_s
+ url_title += "_" + self.id.to_s
end
write_attribute(:url_title, url_title)
end