class SimpleFormExtension::Inputs::BooleanInput

Public Instance Methods

input(wrapper_options = nil) click to toggle source
Calls superclass method
# File lib/simple_form_extension/inputs/boolean_input.rb, line 4
def input(wrapper_options = nil)
  input_html_options[:class] << "check_boxes"
  super
end

Private Instance Methods

build_check_box(unchecked_value, options) click to toggle source
# File lib/simple_form_extension/inputs/boolean_input.rb, line 11
def build_check_box(unchecked_value, options)
  "#{@builder.check_box(attribute_name, input_html_options, checked_value, unchecked_value)} <i class=\"checkbox-icon\"></i>".html_safe
end