app/models/linked_rails/form.rb in linked_rails-0.0.4.pre.gaa82a222d vs app/models/linked_rails/form.rb in linked_rails-0.0.4.pre.gacd5f04d4

- old
+ new

@@ -3,10 +3,11 @@ require 'pundit' module LinkedRails class Form # rubocop:disable Metrics/ClassLength include LinkedRails::Model + include LinkedRails::Model::Cacheable class_attribute :abstract_form, :pages, :model_class def root_relative_iri(**_opts) self.class.form_iri_path @@ -117,10 +118,10 @@ group end def has_many(key, **opts) opts[:input_field] = Form::Field::AssociationInput - opts[:max_count] = 99 + opts[:max_count] ||= 99 field(key, **opts) end def has_one(key, **opts) opts[:input_field] = Form::Field::AssociationInput