From fc39396c6bb985fd3564329d67fc2b8ff422f478 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 3 Dec 2014 08:48:52 -0300 Subject: [PATCH] Avoid ambiguity in 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 0879322..ab73f42 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -97,7 +97,7 @@ class Profile < ActiveRecord::Base end def members_by_name - members.order(:name) + members.order('profiles.name') end class << self -- libgit2 0.21.2