Method: ActForm::Schema::ClassMethods#params
- Defined in:
- lib/act_form/schema.rb
#params(*parents, &block) ⇒ Object
17 18 19 20 |
# File 'lib/act_form/schema.rb', line 17 def params(*parents, &block) self._schema = Base.new(*parents, &block) self._schema.each { |k, opts| self.attribute(k, **opts) } end |