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.
455 456 457 458 459 460 461 |
# File 'lib/sequel/plugins/forme.rb', line 455 def subform(*, &block) if block capture(block){super} else capture{super} end end |