From 064ae972b30b2ca941ee2b0425461bfd27ff24f7 Mon Sep 17 00:00:00 2001 From: Ilyaaaaaaaaaaaaa Zhitomirskiy Date: Thu, 18 Aug 2011 15:38:27 -0700 Subject: [PATCH] the cucumber is now passing & renamed the partial to conform with convention --- app/helpers/aspect_global_helper.rb | 2 +- ...embership_dropdown.haml => _aspect_membership_dropdown.haml} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename app/views/people/{aspect_membership_dropdown.haml => _aspect_membership_dropdown.haml} (100%) diff --git a/app/helpers/aspect_global_helper.rb b/app/helpers/aspect_global_helper.rb index cf509e6d4..9b38b7a09 100644 --- a/app/helpers/aspect_global_helper.rb +++ b/app/helpers/aspect_global_helper.rb @@ -66,7 +66,7 @@ module AspectGlobalHelper end def aspect_membership_dropdown(contact, person, hang, aspect=nil) - selected_aspects = all_aspects.select{|aspect| contact.in_aspect?(aspect.id) } + selected_aspects = all_aspects.select{|aspect| contact.in_aspect?(aspect) } render "shared/aspect_dropdown", :selected_aspects => selected_aspects, diff --git a/app/views/people/aspect_membership_dropdown.haml b/app/views/people/_aspect_membership_dropdown.haml similarity index 100% rename from app/views/people/aspect_membership_dropdown.haml rename to app/views/people/_aspect_membership_dropdown.haml