summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-21 13:48:29 +0000
committerRémy Coutable <remy@rymai.me>2017-06-21 13:48:29 +0000
commit411163226841589ed92c97fcab0503d8b77368eb (patch)
tree3ea258c4da6e0f9c6e0f7523191fdb0a64a15c73 /app/models/issue.rb
parent78ee24ba53a4a44d829613495ec0d5f1bbb5a9ee (diff)
parent0430b7644101fc70ed4be6bf69ccf05b900f4cdf (diff)
downloadgitlab-ce-411163226841589ed92c97fcab0503d8b77368eb.tar.gz
Merge branch 'rubocop/gb/enable-dot-position-cop-leading-style' into 'master'
Enable Style/DotPosition Rubocop :cop: See merge request !11965
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index f0f525aea21..3a9a6dba601 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -124,8 +124,8 @@ class Issue < ActiveRecord::Base
end
def self.order_by_position_and_priority
- order_labels_priority.
- reorder(Gitlab::Database.nulls_last_order('relative_position', 'ASC'),
+ order_labels_priority
+ .reorder(Gitlab::Database.nulls_last_order('relative_position', 'ASC'),
Gitlab::Database.nulls_last_order('highest_priority', 'ASC'),
"id DESC")
end