plataformatec/simple_form — pull request #1147 by msievers (2014-10-08 11:58:36+00:00)
Title: Make BooleanInput respect options

In ```lib/simple_form/inputs/boolean_input.rb``` the method ```build_check_box``` is called with with a options parameter, but does **not** push these options further to ```@builder.check_box```, although ```options = merge_wrapper_options(input_html_options, wrapper_options)```.

This is a problem for instance if you want to build a wrapper for a boolean input, like this

```ruby
config.wrappers :horizontal_switch, tag: 'div', class: 'form-group', error_class: 'has-error' do |b|
b.optional :readonly
b.use :label, class: 'col-sm-4 control-label'

b.wrapper tag: 'div', class: 'col-sm-4' do |ba|
# ba.use :input ignores any options if it's a boolean
ba.use :input, class: 'form-control', :"data-setup" => "bootstrap-switch"
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
end
end
```