frontend/app/controllers/spree/orders_controller.rb
def edit
      @order = current_order || Order.incomplete.
               includes(line_items: [variant: [:images, :option_values, :product]]).
               find_or_initialize_by(guest_token: cookies.signed[:guest_token])
      associate_user
    end
# Shows the current incomplete order from the session
Shows the current incomplete order from the session
Shows the current incomplete order from the session
def edit
      @order = current_order || Order.incomplete.
               includes(line_items: [variant: [:images, :option_values, :product]]).
               find_or_initialize_by(guest_token: cookies.signed[:guest_token])
      associate_user
    end
def edit @order = current_order || Order . incomplete . includes ( line_items : [ variant : [ :images , :option_values , :product ] ] ) . find_or_initialize_by ( guest_token : cookies . signed [ :guest_token ] ) associate_user end
Shows the current incomplete order from the session
Shows the current incomplete order from the session