From 6a26a283902679b24bf9b4b8f90e3becf75f5310 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 26 May 2015 16:08:41 +0100 Subject: Restore methods with deprecation notices --- app/models/info_request.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/models/info_request.rb') 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 -- cgit v1.2.3