diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-06-07 18:14:23 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-06-16 11:59:39 -0300 |
commit | 86fc145c3c0c5056d7c6be1d62cd0b5beec2b1a9 (patch) | |
tree | bffa58304afe9cb8e0d0e9e9a632a49389934e67 /app/models/issue.rb | |
parent | ff7fe2d12dec6c76b5a90b2c95cca81152cc5d42 (diff) | |
download | gitlab-ce-86fc145c3c0c5056d7c6be1d62cd0b5beec2b1a9.tar.gz |
Order issues by priority
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 693cc21bb40..2cede9d284b 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -44,7 +44,7 @@ class Issue < ActiveRecord::Base scope :created_after, -> (datetime) { where("created_at >= ?", datetime) } - scope :include_associations, -> { includes(:labels, project: :namespace) } + scope :preload_associations, -> { preload(:labels, project: :namespace) } after_save :expire_etag_cache |