Commit 64fb2c595aec7a18c7487062971210b59c0a9628
1 parent
f121806a
Exists in
master
and in
4 other branches
fix not inline comments being hidden cause line_code = ''
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/note.rb
... | ... | @@ -41,7 +41,7 @@ class Note < ActiveRecord::Base |
41 | 41 | # Scopes |
42 | 42 | scope :for_commit_id, ->(commit_id) { where(noteable_type: "Commit", commit_id: commit_id) } |
43 | 43 | scope :inline, -> { where("line_code IS NOT NULL") } |
44 | - scope :not_inline, -> { where("line_code IS NULL") } | |
44 | + scope :not_inline, -> { where(line_code: [nil, '']) } | |
45 | 45 | |
46 | 46 | scope :common, ->{ where(noteable_type: ["", nil]) } |
47 | 47 | scope :fresh, ->{ order("created_at ASC, id ASC") } | ... | ... |