app/models/person.rb
# Projects that the person has let completely (i.e. not still involved with through a different institution)
Projects that the person has let completely
Projects that the person has let completely
def former_projects
    old_projects = (former_work_groups.collect {|wg| wg.project }.uniq | former_group_memberships.collect{|gm| gm.work_group.project})
    old_projects - current_projects
  end
def former_projects old_projects = ( former_work_groups . collect { | wg | wg . project } . uniq | former_group_memberships . collect { | gm | gm . work_group . project } ) old_projects - current_projects end
Projects that the person has let completely (i.e.
Projects that the person has let completely ( i . e .