Sha256: 3b06322f76840456099bc9322d4d43555cfb530e0122257edfab016bbd8f08c8
Contents?: true
Size: 664 Bytes
Versions: 5
Compression:
Stored size: 664 Bytes
Contents
# -*- encoding: utf-8 -*- # -*- frozen_string_literal: true -*- # -*- warn_indent: true -*- module RailsBootstrapForm module Inputs module ColorField extend ActiveSupport::Concern included do def color_field(attribute, options = {}) bootstrap = bootstrap_form_options.scoped(options.delete(:bootstrap)) return super if bootstrap.disabled? bootstrap.set_field_class!("form-control form-control-color") bootstrap.disable_floating_labels! field_wrapper_builder(attribute, bootstrap, options) do super(attribute, options) end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems