app/models/concerns/bulkrax/has_matchers.rb in bulkrax-2.3.0 vs app/models/concerns/bulkrax/has_matchers.rb in bulkrax-3.0.0.beta1
- old
+ new
@@ -127,37 +127,27 @@
return true if supported_bulkrax_fields.include?(field)
return factory_class.method_defined?(field) && factory_class.properties[field].present?
end
def supported_bulkrax_fields
- ActiveSupport::Deprecation.warn(
- 'Creating Collections using the collection_field_mapping will no longer be supported as of Bulkrax version 3.0.' \
- ' Please configure Bulkrax to use related_parents_field_mapping and related_children_field_mapping instead.'
- )
@supported_bulkrax_fields ||=
%W[
id
file
remote_files
model
visibility
delete
- #{parser.collection_field_mapping}
#{related_parents_parsed_mapping}
#{related_children_parsed_mapping}
]
end
def multiple?(field)
- ActiveSupport::Deprecation.warn(
- 'Creating Collections using the collection_field_mapping will no longer be supported as of Bulkrax version 3.0.' \
- ' Please configure Bulkrax to use related_parents_field_mapping and related_children_field_mapping instead.'
- )
@multiple_bulkrax_fields ||=
%W[
file
remote_files
- #{parser.collection_field_mapping}
#{related_parents_parsed_mapping}
#{related_children_parsed_mapping}
]
return true if @multiple_bulkrax_fields.include?(field)