summaryrefslogtreecommitdiff
path: root/app/models/email.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-05 14:20:55 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-05 14:20:55 -0800
commit62ed1c537e9b8aa85d354b377f18083fb71b8e05 (patch)
treea1b75f804b2e9384190f9d591a2f2701ea8d31db /app/models/email.rb
parentdbca8c97588d1fcc4155b079eb54157991be3aa7 (diff)
downloadgitlab-ce-62ed1c537e9b8aa85d354b377f18083fb71b8e05.tar.gz
Explicitly define ordering in models using default_scope
Diffstat (limited to 'app/models/email.rb')
-rw-r--r--app/models/email.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/email.rb b/app/models/email.rb
index 57f476bd519..556b0e9586e 100644
--- a/app/models/email.rb
+++ b/app/models/email.rb
@@ -10,6 +10,8 @@
#
class Email < ActiveRecord::Base
+ include Sortable
+
belongs_to :user
validates :user_id, presence: true