<commit_before>require 'rails_admin/config/fields/types/string'

module RailsAdmin
  module Config
    module Fields
      module Types
        class FileUpload < RailsAdmin::Config::Fields::Types::String

          @searchable = true

          # Register field type for the type loader
          RailsAdmin::Config::Fields::Types::register(self)

          register_instance_option(:help) do
            required? ? I18n.translate("admin.new.required") : I18n.translate("admin.new.optional")
          end
        end
      end
    end
  end
end<commit_msg>Make sure the file_upload type loads the correct partial<commit_after>require 'rails_admin/config/fields/types/string'

module RailsAdmin
  module Config
    module Fields
      module Types
        class FileUpload < RailsAdmin::Config::Fields::Types::String

          @searchable = true

          # Register field type for the type loader
          RailsAdmin::Config::Fields::Types::register(self)

          register_instance_option(:partial) do
            :file_upload
          end

          register_instance_option(:help) do
            required? ? I18n.translate("admin.new.required") : I18n.translate("admin.new.optional")
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08486789431545236, 'fraction_numerical': 0.006405124099279423, 'mean_word_length': 2.531073446327684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2007092', 'n_tokens_mistral': 342, 'n_tokens_neox': 322, 'n_words': 79}