lib/solidus_subscriptions/processor.rb
def build_jobs
      users.map do |user|
        installemts_by_address_and_user = installments(user).group_by do |i|
          i.subscription.shipping_address_id
        end

        installemts_by_address_and_user.values.each do |grouped_installments|
          ProcessInstallmentsJob.perform_later grouped_installments.map(&:id)
        end
      end
    end
# Create `ProcessInstallmentsJob`s for the users used to initalize the
# instance
Create `ProcessInstallmentsJob`s for the users used to initalize the
instance
Create ` ProcessInstallmentsJob ` s for the users used to initalize the instance
def build_jobs
      users.map do |user|
        installemts_by_address_and_user = installments(user).group_by do |i|
          i.subscription.shipping_address_id
        end
        installemts_by_address_and_user.values.each do |grouped_installments|
          ProcessInstallmentsJob.perform_later grouped_installments.map(&:id)
        end
      end
    end
def build_jobs users . map do | user | installemts_by_address_and_user = installments ( user ) . group_by do | i | i . subscription . shipping_address_id end installemts_by_address_and_user . values . each do | grouped_installments | ProcessInstallmentsJob . perform_later grouped_installments . map ( & :id ) end end end
Create `ProcessInstallmentsJob`s for the users used to initalize the
instance
Create ` ProcessInstallmentsJob ` s for the users used to initalize the instance