diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-26 17:19:36 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-26 17:19:36 +0100 |
commit | 684630a92000913eec1fa653e923ba87371053ec (patch) | |
tree | 794ec96b1a98988cad84ea8588a24cf6731387ae /app/models/info_request.rb | |
parent | df5e41ebe0a26dcce321845593930955bead952c (diff) | |
parent | 6a26a283902679b24bf9b4b8f90e3becf75f5310 (diff) |
Merge branch 'scope-comments' into rails-3-develop
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index bdc9ec040..3ce0e3cd2 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -200,7 +200,9 @@ class InfoRequest < ActiveRecord::Base OLD_AGE_IN_DAYS = 21.days def visible_comments - self.comments.find(:all, :conditions => 'visible') + 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 |