order facebook friends
This commit is contained in:
parent
8a8f8db9ad
commit
6f72a0cb38
1 changed files with 2 additions and 2 deletions
|
|
@ -29,9 +29,9 @@ class Services::Facebook < Service
|
|||
person = Person.arel_table
|
||||
service_user = ServiceUser.arel_table
|
||||
if opts[:local]
|
||||
ServiceUser.joins(:person).where(:service_id => self.id).where(person[:owner_id].not_eq(nil)).all
|
||||
ServiceUser.joins(:person).where(:service_id => self.id).where(person[:owner_id].not_eq(nil)).order(:name).all
|
||||
elsif opts[:remote]
|
||||
ServiceUser.joins(:person).where(:service_id => self.id).where(person[:owner_id].eq(nil)).all
|
||||
ServiceUser.joins(:person).where(:service_id => self.id).where(person[:owner_id].eq(nil)).order(:name).all
|
||||
else
|
||||
self.service_users
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue