app/models/solidus_subscriptions/subscription_generator.rb
# Group a collection of line items by common subscription configuration
# options. Grouped subscription_line_items can belong to a single
# subscription.
#
# @param subscription_line_items [Array<SolidusSubscriptions::LineItem>] The
#   subscription_line_items to be grouped.
#
# @return [Array<Array<SolidusSubscriptions::LineItem>>]
Group a collection of line items by common subscription configuration
options. Grouped subscription_line_items can belong to a single
subscription.
Group a collection of line items by common subscription configuration options . Grouped subscription_line_items can belong to a single subscription .
def group(subscription_line_items)
      subscription_line_items.group_by do |li|
        subscription_configuration(li)
      end.
      values
    end
def group ( subscription_line_items ) subscription_line_items . group_by do | li | subscription_configuration ( li ) end . values end
Group a collection of line items by common subscription configuration
options.
Group a collection of line items by common subscription configuration options .
None
Array<Array<SolidusSubscriptions::LineItem>>
subscription_line_items
The subscription_line_items to be grouped.
The subscription_line_items to be grouped .