Module: SimpleForm::Components::Wrapper
- Included in:
- Inputs::Base
- Defined in:
- lib/simple_form/components/wrapper.rb
Instance Method Summary collapse
Instance Method Details
#wrap(content) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/simple_form/components/wrapper.rb', line 4 def wrap(content) if wrapper_tag && [:wrapper] != false template.content_tag(wrapper_tag, content, ) else content end end |
#wrapper_html_options ⇒ Object
16 17 18 |
# File 'lib/simple_form/components/wrapper.rb', line 16 def (:wrapper, input_type, required_class) end |
#wrapper_tag ⇒ Object
12 13 14 |
# File 'lib/simple_form/components/wrapper.rb', line 12 def wrapper_tag [:wrapper_tag] || SimpleForm.wrapper_tag end |