diff --git a/plugins/people_block/lib/ext/person.rb b/plugins/people_block/lib/ext/person.rb index daf4f03..8c6f94b 100644 --- a/plugins/people_block/lib/ext/person.rb +++ b/plugins/people_block/lib/ext/person.rb @@ -2,7 +2,7 @@ require_dependency 'person' class Person - named_scope :with_role, lambda { |role_id| + scope :with_role, lambda { |role_id| { :select => 'DISTINCT profiles.*', :joins => :role_assignments, :conditions => ["role_assignments.role_id = #{role_id}"] } } -- libgit2 0.21.2