Skip to content
Extraits de code Groupes Projets
Valider c1eb986f rédigé par Fabián Rodríguez's avatar Fabián Rodríguez
Parcourir les fichiers

remove unnecessary code from people_controller#contacts and use #each in view

parent e76935da
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -146,8 +146,6 @@ class PeopleController < ApplicationController
@aspect = :profile
@contacts_of_contact = @contact.contacts.paginate(:page => params[:page], :per_page => (params[:limit] || 15))
@hashes = hashes_for_people @contacts_of_contact, @aspects
@aspects_with_person = @contact.aspects
@aspect_ids = @aspects_with_person.map(&:id)
else
flash[:error] = I18n.t 'people.show.does_not_exist'
redirect_to people_path
......
......@@ -16,6 +16,6 @@
= render 'people/sub_header', :person => @person, :contact => @contact
#people_stream.stream
- for hash in @hashes
- @hashes.each do |hash|
= render :partial => 'people/person', :locals => hash
= will_paginate @contacts_of_contact
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter