Sha256: 5e7435b8b5ed847b371444a91b1e4af8dc352b7d864a03d9feb0d2c97c60fffe
Contents?: true
Size: 925 Bytes
Versions: 9
Compression:
Stored size: 925 Bytes
Contents
# frozen_string_literal: true module BootstrapForm module Inputs module CollectionSelect extend ActiveSupport::Concern include Base included do # Disabling Metrics/ParameterLists because the upstream Rails method has the same parameters # rubocop:disable Metrics/ParameterLists def collection_select_with_bootstrap(method, collection, value_method, text_method, options={}, html_options={}) html_options = html_options.reverse_merge(control_class: "form-select") form_group_builder(method, options, html_options) do prepend_and_append_input(method, options) do collection_select_without_bootstrap(method, collection, value_method, text_method, options, html_options) end end end # rubocop:enable Metrics/ParameterLists bootstrap_alias :collection_select end end end end
Version data entries
9 entries across 9 versions & 1 rubygems