lib/spotlight/upload_field_config.rb in blacklight-spotlight-3.0.0.alpha.10 vs lib/spotlight/upload_field_config.rb in blacklight-spotlight-3.0.0.rc1
- old
+ new
@@ -6,9 +6,10 @@
# This configuration is also used in other places around the application (e.g. Metadata Field Config)
# See Spotlight::Engine.config.upload_fields for where this is consumed
# We should look into changing this to a standard blacklight field config in Blacklight 7
class UploadFieldConfig
attr_reader :blacklight_options, :field_name, :form_field_type
+
def initialize(blacklight_options: {}, field_name:, form_field_type: :text_field, label: nil, solr_fields: nil)
@blacklight_options = blacklight_options
@field_name = field_name
@form_field_type = form_field_type
@solr_fields = solr_fields