Class: ToggleInput

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

Overview


Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



3
4
5
6
7
8
# File 'app/inputs/toggle_input.rb', line 3

def input(wrapper_options)
  out = '<div class="yes_no">'
  out << @builder.check_box(attribute_name, input_html_options)
  out << '</div>'
  return out
end