summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-04 09:50:18 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-04 09:50:18 +0300
commit64fb2c595aec7a18c7487062971210b59c0a9628 (patch)
tree9124c5e778325358461c132ef113f29fea963b9f /app/models/note.rb
parentf121806ad0d71ace008e43bd96835a8ee1f20418 (diff)
downloadgitlab-ce-64fb2c595aec7a18c7487062971210b59c0a9628.tar.gz
fix not inline comments being hidden cause line_code = ''
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index f26420ca2a0..baf0634cf62 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -41,7 +41,7 @@ class Note < ActiveRecord::Base
# Scopes
scope :for_commit_id, ->(commit_id) { where(noteable_type: "Commit", commit_id: commit_id) }
scope :inline, -> { where("line_code IS NOT NULL") }
- scope :not_inline, -> { where("line_code IS NULL") }
+ scope :not_inline, -> { where(line_code: [nil, '']) }
scope :common, ->{ where(noteable_type: ["", nil]) }
scope :fresh, ->{ order("created_at ASC, id ASC") }