class LocalFormMetadataService
Answers queries about the cardinality of each field on the form.
Public Class Methods
multiple?(model_class, field)
click to toggle source
@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
Calls superclass method
# File lib/generators/dog_biscuits/templates/app/services/local_form_metadata_service.rb, line 7 def self.multiple?(model_class, field) if DogBiscuits.config.singular_properties.include? field false else # Inquire at the model level super end end