diff options
author | francis <francis> | 2009-04-08 05:34:51 +0000 |
---|---|---|
committer | francis <francis> | 2009-04-08 05:34:51 +0000 |
commit | 2424bdf7da5346a6bf28dbaf9ff4d9bfd70b070c (patch) | |
tree | 80e1bc7adb4bf633ecd093357531f36fc199ba88 /app/models/info_request_event.rb | |
parent | 14b2c6e814484a76e52cc8108fa8bdf8081606cc (diff) |
Remove some uses of gsub!, which might be clobbering other versions of strings
which are really members of some other class
Diffstat (limited to 'app/models/info_request_event.rb')
-rw-r--r-- | app/models/info_request_event.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index ef8bff164..efb58930b 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -21,7 +21,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request_event.rb,v 1.77 2009-03-09 15:48:32 tony Exp $ +# $Id: info_request_event.rb,v 1.78 2009-04-08 05:34:52 francis Exp $ class InfoRequestEvent < ActiveRecord::Base belongs_to :info_request @@ -106,7 +106,7 @@ class InfoRequestEvent < ActiveRecord::Base url_title = self.info_request.url_title # remove numeric section from the end, use this to group lots # of similar requests by - url_title.gsub!(/[_0-9]+$/, "") + url_title = url_title.gsub(/[_0-9]+$/, "") return url_title end def described_at |