Module: Sequel::Plugins::Forme::ERBSequelForm
- Defined in:
- lib/sequel/plugins/forme.rb
Overview
Helper module used for Sequel forms using ERB template integration. Necessary for proper subform handling when using such forms with partials.
Instance Method Summary collapse
-
#subform(&block) ⇒ Object
Capture the inside of the inputs, injecting it into the template if a block is given, or returning it as a string if not.
Instance Method Details
#subform(&block) ⇒ Object
Capture the inside of the inputs, injecting it into the template if a block is given, or returning it as a string if not.
443 444 445 446 447 448 449 |
# File 'lib/sequel/plugins/forme.rb', line 443 def subform(*, &block) if block capture(block){super} else capture{super} end end |