Commit fc39396c6bb985fd3564329d67fc2b8ff422f478

Authored by Victor Costa
1 parent 91d020aa

Avoid ambiguity in members_by_name

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/profile.rb
@@ -97,7 +97,7 @@ class Profile < ActiveRecord::Base @@ -97,7 +97,7 @@ class Profile < ActiveRecord::Base
97 end 97 end
98 98
99 def members_by_name 99 def members_by_name
100 - members.order(:name) 100 + members.order('profiles.name')
101 end 101 end
102 102
103 class << self 103 class << self