Method: Compony::Components::Form#schema_line
- Defined in:
- lib/compony/components/form.rb
#schema_line(&block) ⇒ Object (protected)
DSL method, adds a new line to the schema whitelisting a single param inside the schema's wrapper
The block should be something like str? :foo and will run in a Schemacop3 context.
185 186 187 |
# File 'lib/compony/components/form.rb', line 185 def schema_line(&block) @schema_lines_for_data << proc { |_data, _controller| block } end |