Class: Gitloggl::Gitlab::Stack::GroupAgg
- Defined in:
- lib/gitloggl/gitlab/stack/group_agg.rb
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from Gitloggl::Gitlab::Stack::Abstract
Instance Method Details
#before_call ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/gitloggl/gitlab/stack/group_agg.rb', line 9 def before_call env.issues = env.issues.group_by(&:path).each_with_object([]) do |(_, group), object| object.push(group.inject { |a, b| a + b }) next unless group.many? callback!.call(group[1..-1]) end end |