diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-11-02 16:29:59 +0000 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-11-02 16:29:59 +0000 |
commit | 727561f4cac6d39f285519c3e5eca4559d51b131 (patch) | |
tree | 4546fe4d07ad12f2afec61190d198095c2bd6889 | |
parent | e60869e2a0cab0886781857c8f2da00befad88a0 (diff) | |
download | gitlab-ce-38677-render-new-discussions-on-diff-tab.tar.gz |
Use diff_discussion? instead of is_a?(DiffDiscussion)38677-render-new-discussions-on-diff-tab
-rw-r--r-- | app/controllers/concerns/notes_actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/notes_actions.rb b/app/controllers/concerns/notes_actions.rb index 3aa608c4792..048381a4d15 100644 --- a/app/controllers/concerns/notes_actions.rb +++ b/app/controllers/concerns/notes_actions.rb @@ -109,7 +109,7 @@ module NotesActions discussion_html: discussion_html(discussion) ) - attrs[:discussion_line_code] = discussion.line_code if discussion.is_a?(DiffDiscussion) + attrs[:discussion_line_code] = discussion.line_code if discussion.diff_discussion? end end else |