aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-05-26 16:08:41 +0100
committerLouise Crow <louise.crow@gmail.com>2015-05-26 16:08:41 +0100
commit6a26a283902679b24bf9b4b8f90e3becf75f5310 (patch)
tree81a93226ff36b696473e62c756e6f9f970d2a64c /app/models/info_request.rb
parent2ad18cc8610f6e17731acd388d8c3cdaae0de004 (diff)
Restore methods with deprecation notices
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