aeolusproject/conductor

View on GitHub
src/lib/simple_form_extension/collection_check_boxes_input.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CollectionCheckBoxesInput <  SimpleForm::Inputs::CollectionCheckBoxesInput

  def input
    if options[:wrapper_html].present?
      options[:wrapper_html].merge!(:class => 'checkbox')
    else
      options[:wrapper_html] = { :class => 'checkbox' }
    end

    super
  end

end