Class: Essence::ToggleInput

Inherits:
SimpleForm::Inputs::BooleanInput
  • Object
show all
Defined in:
app/inputs/essence/toggle_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



5
6
7
8
9
10
# File 'app/inputs/essence/toggle_input.rb', line 5

def input(wrapper_options = nil)
  merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

  @builder.label(attribute_name, merged_input_options) { '' } +
    build_check_box(unchecked_value, {})
end