aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/comment.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-01-29 16:10:52 +0000
committerLouise Crow <louise.crow@gmail.com>2014-01-29 16:10:52 +0000
commit184ffeccb7f4579b481db9b7744aa9baed70562f (patch)
tree67c023b029a699a1e727ef6becdc0832e82ea1c5 /app/models/comment.rb
parente44c8b875fd4ad46b954ef9c31bdb6f0366dcb9e (diff)
parent79b2f672aeae394a2c195d89b70bda27bb3201a4 (diff)
Merge branch 'feature/batch-requests' into rails-3-develop
Conflicts: config/general.yml-example spec/factories.rb
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 75d37e04f..b4c099123 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -62,7 +62,7 @@ class Comment < ActiveRecord::Base
end
# When posting a new comment, use this to check user hasn't double submitted.
- def Comment.find_by_existing_comment(info_request_id, body)
+ def Comment.find_existing(info_request_id, body)
# XXX 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