Class: TaoForm::Inputs::BooleanInput
- Inherits:
-
SimpleForm::Inputs::BooleanInput
- Object
- SimpleForm::Inputs::BooleanInput
- TaoForm::Inputs::BooleanInput
- Defined in:
- lib/tao_form/inputs/boolean_input.rb
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/tao_form/inputs/boolean_input.rb', line 5 def input( = nil) = (, ) = .merge() input_content = template.send(switch? ? :tao_switch : :tao_check_box, @builder, attribute_name, ) template.content_tag(:div, input_content, class: 'boolean-field') end |