You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: digital.rb
    path of file: ./repos/spree/core/app/models/spree/order
    
    the code of the file until where you have to start completion: module Spree
  class Order < Spree::Base
    module Digital
      def digital?
    
      def create_digital_links
        digital_line_items.each do |line_item|
          line_item.variant.digitals.each do |digital|
            line_item.digital_links.create!(digital: digital)
          end
        end
      end