Fullscreen/bh

View on GitHub
lib/bh/core_ext/rails/form/select_helper.rb

Summary

Maintainability
A
35 mins
Test Coverage
require 'bh/core_ext/rails/form/base_helper'

module Bh
  module Form
    module SelectHelper
      include BaseHelper

      def select(method, choices = nil, options = {}, html_options = {}, &block)
        append_class! html_options, 'form-control'
        base_field method, :select, options do
          super method, choices, options, html_options, &block
        end
      end
    end
  end
end