aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index df12b823b..d50000aba 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -197,6 +197,12 @@ class User < ActiveRecord::Base
(locale || I18n.locale).to_s
end
+ def visible_comments
+ warn %q([DEPRECATION] User#visible_comments will be replaced with
+ User#comments.visible as of 0.23).squish
+ comments.visible
+ end
+
# Don't display any leading/trailing spaces
# TODO: we have strip_attributes! now, so perhaps this can be removed (might
# be still needed for existing cases)