提交 0eaabc27 编写于 作者: D Dmitriy Zaporozhets

Revert "Note: add default_scope { order(created_at: :asc, id: :asc) }"

This reverts commit 7602cef5.
上级 b5e961eb
...@@ -44,7 +44,6 @@ class Note < ActiveRecord::Base ...@@ -44,7 +44,6 @@ class Note < ActiveRecord::Base
mount_uploader :attachment, AttachmentUploader mount_uploader :attachment, AttachmentUploader
# Scopes # Scopes
default_scope { order(created_at: :asc, id: :asc) }
scope :for_commit_id, ->(commit_id) { where(noteable_type: "Commit", commit_id: commit_id) } scope :for_commit_id, ->(commit_id) { where(noteable_type: "Commit", commit_id: commit_id) }
scope :inline, ->{ where("line_code IS NOT NULL") } scope :inline, ->{ where("line_code IS NOT NULL") }
scope :not_inline, ->{ where(line_code: [nil, '']) } scope :not_inline, ->{ where(line_code: [nil, '']) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册