summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/label.rb4
-rw-r--r--app/models/note.rb1
2 files changed, 1 insertions, 4 deletions
diff --git a/app/models/label.rb b/app/models/label.rb
index c8f6a7cd48c..9d7099c5652 100644
--- a/app/models/label.rb
+++ b/app/models/label.rb
@@ -11,8 +11,6 @@
#
class Label < ActiveRecord::Base
- include Sortable
-
DEFAULT_COLOR = '#428BCA'
belongs_to :project
@@ -30,7 +28,7 @@ class Label < ActiveRecord::Base
format: { with: /\A[^&\?,&]+\z/ },
uniqueness: { scope: :project_id }
- scope :order_by_name, -> { reorder("labels.title ASC") }
+ default_scope { order(title: :asc) }
alias_attribute :name, :title
diff --git a/app/models/note.rb b/app/models/note.rb
index a3f2980cebd..0b988cc3e0f 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -23,7 +23,6 @@ require 'file_size_validator'
class Note < ActiveRecord::Base
include Mentionable
- default_scope { order(created_at: :asc, id: :asc) }
default_value_for :system, false
attr_mentionable :note