Sha256: 27a4aacde226f52e767b5a48bbe87b026505676adadbeb92b7c1c8f31590c4c6

Contents?: true

Size: 364 Bytes

Versions: 6

Compression:

Stored size: 364 Bytes

Contents

require 'bh/core_ext/rails/form/base_helper'

module Bh
  module Form
    module FieldHelper
      include BaseHelper

      def field(method, field_type, options = {}, &block)
        options[:placeholder] ||= strip_tags(label method)
        append_class! options, 'form-control'
        base_field method, field_type, options, &block
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bh-1.3.6 lib/bh/core_ext/rails/form/field_helper.rb
bh-1.3.5 lib/bh/core_ext/rails/form/field_helper.rb
bh-1.3.4 lib/bh/core_ext/rails/form/field_helper.rb
bh-1.3.3 lib/bh/core_ext/rails/form/field_helper.rb
bh-1.3.1 lib/bh/core_ext/rails/form/field_helper.rb
bh-1.3.0 lib/bh/core_ext/rails/form/field_helper.rb