Method: Formalist::Elements::Group#fill

Defined in:
lib/formalist/elements/group.rb

#fill(input: {}, errors: {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/formalist/elements/group.rb', line 8

def fill(input: {}, errors: {})
  children = self.children.map { |child|
    child.fill(input: input, errors: errors)
  }

  super(input: input, errors: errors, children: children)
end