gitlab-org--gitlab-foss/app/models/out_of_context_discussion.rb

13 lines
404 B
Ruby
Raw Normal View History

2017-03-17 19:25:52 +00:00
class OutOfContextDiscussion < Discussion
# To make sure all out-of-context notes are displayed in one discussion,
# we override the discussion ID to be a newly generated but consistent ID.
def self.override_discussion_id(note)
discussion_id(note)
end
# Keep this method in sync with the `potentially_resolvable` scope on `ResolvableNote`
def potentially_resolvable?
false
end
end