removed the query from the contact list partial
This commit is contained in:
parent
8ba619029e
commit
7e3b2c6afd
2 changed files with 6 additions and 1 deletions
|
|
@ -30,5 +30,10 @@ module AspectsHelper
|
|||
remove_from_aspect_button(aspect_id, contact.person.id)
|
||||
end
|
||||
end
|
||||
|
||||
def contact_link(contact)
|
||||
person = contact.person
|
||||
link_to person.name, person
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
- for contact in contacts
|
||||
%li
|
||||
%span.name
|
||||
= link_to contact.person.name, contact.person
|
||||
= contact_link contact
|
||||
.right
|
||||
= aspect_membership_button(aspect_id, contact)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue