app/helpers/binco/bootstrap_form_builder.rb in binco-0.0.1 vs app/helpers/binco/bootstrap_form_builder.rb in binco-0.0.2

- old
+ new

@@ -3,9 +3,19 @@ def text_field(name, options = {}) options = add_class_to_options('form-control', options) super name, options end + def telephone_field(name, options = {}) + options = add_class_to_options('form-control', options) + super name, options + end + + def select(method, choices = nil, options = {}, html_options = {}, &block) + html_options = add_class_to_options('form-control', html_options) + super method, choices, options, html_options, &block + end + def collection_check_boxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block) if block_given? super(method, collection, value_method, text_method, options, html_options, &block) else super method, collection, value_method, text_method, options, html_options do |b|