lib/eco/api/common/people/supervisor_helpers.rb in eco-helpers-2.0.25 vs lib/eco/api/common/people/supervisor_helpers.rb in eco-helpers-2.0.26

- old
+ new

@@ -13,10 +13,10 @@ module ClassMethods # Reorders as follows: # 1. supervisors, people with no supervisor or where their supervisor not present # 2. subordinates - # @return [Array<Entry>] `values` sorted by supervisors/subordinates + # @return [Array<PersonEntry>] `values` sorted by supervisors/subordinates def sort_by_supervisors(values, supervisors_first: true) raise "Expected non hash Enumerable. Given: #{values.class}" if values.is_a?(Hash) return [] unless values && values.is_a?(Enumerable) roam = Proc.new do |tree| [].tap do |out|