|
@@ -41,8 +41,11 @@ class PeopleController < ApplicationController
|
|
|
people_ht = Hash.new
|
|
|
|
|
|
Person.preload(:passes).all.each do |person|
|
|
|
- people_ht[person.GetKey] = Array.new if people_ht[person.GetKey].nil?
|
|
|
- people_ht[person.GetKey] << person
|
|
|
+ keys = person.GetKeys
|
|
|
+ keys.each do |key|
|
|
|
+ people_ht[key] = Array.new if people_ht[key].nil?
|
|
|
+ people_ht[key] << person
|
|
|
+ end
|
|
|
end
|
|
|
|
|
|
@people = Array.new
|
|
@@ -145,9 +148,11 @@ class PeopleController < ApplicationController
|
|
|
|
|
|
people = Hash.new
|
|
|
Person.where("is_actual = 1").all.each do |person|
|
|
|
- key = person.GetKey
|
|
|
- people[key] = Array.new if people[key].nil?
|
|
|
- people[key] << person
|
|
|
+ keys = person.GetKeys
|
|
|
+ keys.each do |key|
|
|
|
+ people[key] = Array.new if people[key].nil?
|
|
|
+ people[key] << person
|
|
|
+ end
|
|
|
end
|
|
|
|
|
|
passes_raw = Hash.new
|