From b7be7d723acc24b5df99d0995f5f8f7fab919f1a Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 3 Dec 2014 08:48:52 -0300 Subject: [PATCH] Fix members_by_name --- app/models/profile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index 4213835..7216faf 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -135,7 +135,7 @@ class Profile < ActiveRecord::Base end def members_by_name - members.order(:name) + members.order('profiles.name') end class << self -- libgit2 0.21.2