summaryrefslogtreecommitdiff
path: root/app/models/concerns/noteable.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-08-17 19:26:45 +0200
committerDouwe Maan <douwe@selenight.nl>2017-08-17 19:26:45 +0200
commit5f758aff57dc54df7d92d0fb63e706d58cf1093d (patch)
tree5eb0e5f786e37c2f8e72a6dea13fac0408da982e /app/models/concerns/noteable.rb
parent9c22974cd14f41ed156ced0a6742dbae7412b0db (diff)
downloadgitlab-ce-5f758aff57dc54df7d92d0fb63e706d58cf1093d.tar.gz
Prefer polymorphism over `is_a?`
Diffstat (limited to 'app/models/concerns/noteable.rb')
-rw-r--r--app/models/concerns/noteable.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/noteable.rb b/app/models/concerns/noteable.rb
index a30deffec7b..1c4ddabcad5 100644
--- a/app/models/concerns/noteable.rb
+++ b/app/models/concerns/noteable.rb
@@ -24,6 +24,10 @@ module Noteable
DiscussionNote::NOTEABLE_TYPES.include?(base_class_name)
end
+ def discussions_rendered_on_frontend?
+ false
+ end
+
def discussion_notes
notes
end