Sha256: 43cd88714b4939522cc9b79961a765c45926f2b69bf7170fbca65592b72d1330
Contents?: true
Size: 554 Bytes
Versions: 8
Compression:
Stored size: 554 Bytes
Contents
module Hyrax # Answers queries about the cardinality of each field on the form. class FormMetadataService < HydraEditor::FieldMetadataService # @param [Class] model_class the class of the object # @param [Symbol] field the field we want to know about # @return [Boolean] true if the passed in field is a multivalued field def self.multiple?(model_class, field) return true if ['ordered_member_ids', 'in_works_ids', 'member_of_collection_ids'].include? field.to_s # Inquire at the model level super end end end
Version data entries
8 entries across 8 versions & 1 rubygems