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

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/contacts_controller.rb')
-rw-r--r--app/controllers/contacts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/contacts_controller.rb b/app/controllers/contacts_controller.rb
index f62050734..34a45b383 100644
--- a/app/controllers/contacts_controller.rb
+++ b/app/controllers/contacts_controller.rb
@@ -66,7 +66,7 @@ class ContactsController < ApplicationController
when "receiving"
current_user.contacts.receiving
when "by_aspect"
- order.unshift "contact_id IS NOT NULL DESC"
+ order.unshift Arel.sql("contact_id IS NOT NULL DESC")
contacts_by_aspect(@aspect.id)
else
raise ArgumentError, "unknown type #{type}"