Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-05-13 18:26:18 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-06-06 19:59:49 +0300
commit499bb9f305e78d0e3488c2eee6328ce76af39920 (patch)
treeffc4aa229ae08c995afabf893ed36167c950302e /config
parentd8263b285193d9163089683eb77825f1cd673b14 (diff)
Improve Issuable.order_labels_priority
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config')
-rw-r--r--config/initializers/nulls_last.rb15
-rw-r--r--config/routes.rb2
2 files changed, 1 insertions, 16 deletions
diff --git a/config/initializers/nulls_last.rb b/config/initializers/nulls_last.rb
deleted file mode 100644
index 47b7b0bb3d2..00000000000
--- a/config/initializers/nulls_last.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-module ActiveRecord
- class Base
- def self.nulls_last(field, direction = 'ASC')
- if Gitlab::Database.postgresql?
- "#{field} #{direction} NULLS LAST"
- else
- if direction.upcase == 'ASC'
- "-#{field} DESC"
- else
- "#{field} DESC"
- end
- end
- end
- end
-end
diff --git a/config/routes.rb b/config/routes.rb
index 5aa8a0fe8a5..93ff825d7b2 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -724,7 +724,7 @@ Rails.application.routes.draw do
member do
post :toggle_subscription
- post :toggle_priority
+ delete :remove_priority
end
end