aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user.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/user.rb
parent2ad18cc8610f6e17731acd388d8c3cdaae0de004 (diff)
Restore methods with deprecation notices
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)