From 30796de400afa769fb58dc22eeab38430b2d9c9d Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Fri, 13 May 2011 16:58:24 -0700 Subject: [PATCH] switching the order around to utilize eagerloading --- app/helpers/aspect_global_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/aspect_global_helper.rb b/app/helpers/aspect_global_helper.rb index 361ee173f..66f2a9976 100644 --- a/app/helpers/aspect_global_helper.rb +++ b/app/helpers/aspect_global_helper.rb @@ -83,7 +83,7 @@ module AspectGlobalHelper end def aspect_dropdown_list_item(aspect, contact, person) - checked = contact.persisted? && aspect.contacts.include?(contact) ? "checked=\"checked\"" : "" + checked = contact.persisted? && contact.aspects.include?(aspect) ? "checked=\"checked\"" : "" str = "
  • " str << "" str << aspect.name