diff --git a/app/models/person.rb b/app/models/person.rb index 0946f4b..ea4a5e5 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -25,7 +25,7 @@ class Person < Profile Profile.find( :all, :conditions => self.class.conditions_for_profiles(conditions, self), - :joins => "LEFT JOIN role_assignments ON profiles.id = role_assignments.resource_id AND role_assignments.resource_type = \"#{Profile.base_class.name}\"", + :joins => "LEFT JOIN role_assignments ON profiles.id = role_assignments.resource_id AND role_assignments.resource_type = \'#{Profile.base_class.name}\'", :select => 'profiles.*').uniq end -- libgit2 0.21.2