aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/comment.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-06-16 13:46:22 +0100
committerLouise Crow <louise.crow@gmail.com>2014-06-16 13:46:22 +0100
commit04145fbe231cdbbc88b9172dad1ae3d1ddfb65cc (patch)
tree0516d6a792f4f0174e673579e2bf01bb4f8242bb /app/models/comment.rb
parent6c89d63b6eebe33401efbf376e3884c61fb92d26 (diff)
parent7bf6cbe307d3fd99680c084025240ed504e37297 (diff)
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r--app/models/comment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index b4c099123..a62c086d5 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -63,7 +63,7 @@ class Comment < ActiveRecord::Base
# When posting a new comment, use this to check user hasn't double submitted.
def Comment.find_existing(info_request_id, body)
- # XXX can add other databases here which have regexp_replace
+ # TODO: can add other databases here which have regexp_replace
if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
# Exclude spaces from the body comparison using regexp_replace
return Comment.find(:first, :conditions => [ "info_request_id = ? and regexp_replace(body, '[[:space:]]', '', 'g') = regexp_replace(?, '[[:space:]]', '', 'g')", info_request_id, body ])