<commit_before>class Order < ActiveRecord::Base

  def request_from_local_scan
    # Send email to scanning team
    request = current_request
    SendIt.local_scan_request self, {
      :not_available_link => @path_controller.order_not_available_url(self),
      :order_id => "#{config.order_prefix}-#{self.id}",
      :from => config.local_scan.from_mail,
      :to => config.local_scan.order_mail }
    request.external_number = self.id
    request.order_status = OrderStatus.find_by_code("request")
    request.save!
    save!
  end
end<commit_msg>Changed not available link to point to show page where information can be added.<commit_after>class Order < ActiveRecord::Base

  def request_from_local_scan
    # Send email to scanning team
    request = current_request
    SendIt.local_scan_request self, {
      :not_available_link => @path_controller.order_url(self),
      :order_id => "#{config.order_prefix}-#{self.id}",
      :from => config.local_scan.from_mail,
      :to => config.local_scan.order_mail }
    request.external_number = self.id
    request.order_status = OrderStatus.find_by_code("request")
    request.save!
    save!
  end
end
{'fraction_non_alphanumeric': 0.10285220397579949, 'fraction_numerical': 0.0, 'mean_word_length': 3.8860759493670884, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1862816', 'n_tokens_mistral': 358, 'n_tokens_neox': 355, 'n_words': 72}