diff --git a/app/models/note.rb b/app/models/note.rb index bbbe71173a949236f1aaa820ecac4858892b3a33..649e9b4e852e480bf47fbe170e393e2062bfee8d 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, '']) }