Class: Forme::InputsWrapper::Div
- Inherits:
-
Object
- Object
- Forme::InputsWrapper::Div
- Defined in:
- lib/forme/transformers/inputs_wrapper.rb
Overview
Use a <div> tag to wrap the inputs.
Registered as :div.
Instance Method Summary collapse
-
#call(form, opts, &block) ⇒ Object
Wrap the inputs in an <div> tag.
Instance Method Details
#call(form, opts, &block) ⇒ Object
Wrap the inputs in an <div> tag
58 59 60 |
# File 'lib/forme/transformers/inputs_wrapper.rb', line 58 def call(form, opts, &block) form.tag(:div, opts[:attr], &block) end |