From 543230c911f94cd785b4b4ed1c8fde74ac1a841f Mon Sep 17 00:00:00 2001 From: MoisesMachado Date: Sat, 20 Oct 2007 03:15:49 +0000 Subject: [PATCH] ActionItem85: fixed a bug with ticks in postgres database --- app/models/person.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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