DG MS; cleaned up method
This commit is contained in:
parent
9162a4a168
commit
0f7807222b
1 changed files with 3 additions and 5 deletions
|
|
@ -44,11 +44,9 @@ module Diaspora
|
|||
end
|
||||
|
||||
def people_in_aspects aspects
|
||||
people = []
|
||||
aspects.each{ |aspect|
|
||||
people = people | aspect.people
|
||||
}
|
||||
people
|
||||
aspects.inject([]) do |found_people,aspect|
|
||||
found_people | aspect.people
|
||||
end
|
||||
end
|
||||
|
||||
def all_aspect_ids
|
||||
|
|
|
|||
Loading…
Reference in a new issue