aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 92cb4b208..dae7b08c8 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -212,6 +212,12 @@ class InfoRequest < ActiveRecord::Base
OLD_AGE_IN_DAYS = 21.days
+ def visible_comments
+ warn %q([DEPRECATION] InfoRequest#visible_comments will be replaced with
+ InfoRequest#comments.visible as of 0.23).squish
+ comments.visible
+ end
+
# If the URL name has changed, then all request: queries will break unless
# we update index for every event. Also reindex if prominence changes.
after_update :reindex_some_request_events