summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-18 11:42:03 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-18 11:42:03 -0700
commit0eaabc270868b79185f72ac6e99551e33dbb3c23 (patch)
treeb5bb0d0049e99ecbb20797cdb2c7e55527850890 /app/models
parentb5e961eb4c8ccc022d49af76d563a8a97ad5eb34 (diff)
downloadgitlab-ce-0eaabc270868b79185f72ac6e99551e33dbb3c23.tar.gz
Revert "Note: add default_scope { order(created_at: :asc, id: :asc) }"
This reverts commit 7602cef572fd770a06eb3d94f2aef57c2693dcb6.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/note.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index bbbe71173a9..649e9b4e852 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -44,7 +44,6 @@ class Note < ActiveRecord::Base
mount_uploader :attachment, AttachmentUploader
# Scopes
- default_scope { order(created_at: :asc, id: :asc) }
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: [nil, '']) }