Sha256: 1d6902ca926587e8d26ad66a9a0b31cf3682b8c89ea393eb6092c9b64a078cc6

Contents?: true

Size: 1.15 KB

Versions: 5

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

module BootstrapForm
  module Inputs
    module GroupedCollectionSelect
      extend ActiveSupport::Concern
      include Base

      included do
        # Disabling Metrics/ParameterLists because the upstream Rails method has the same parameters
        # rubocop:disable Metrics/ParameterLists
        def grouped_collection_select_with_bootstrap(method, collection, group_method,
                                                     group_label_method, option_key_method,
                                                     option_value_method, options={}, html_options={})
          form_group_builder(method, options, html_options) do
            input_with_error(method) do
              grouped_collection_select_without_bootstrap(method, collection, group_method,
                                                          group_label_method, option_key_method,
                                                          option_value_method, options, html_options)
            end
          end
        end
        # rubocop:enable Metrics/ParameterLists

        bootstrap_alias :grouped_collection_select
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap_form-4.5.0/lib/bootstrap_form/inputs/grouped_collection_select.rb
bootstrap_form-4.5.0 lib/bootstrap_form/inputs/grouped_collection_select.rb
bootstrap_form-4.4.0 lib/bootstrap_form/inputs/grouped_collection_select.rb
bootstrap_form-4.3.0 lib/bootstrap_form/inputs/grouped_collection_select.rb
bootstrap_form-4.2.0 lib/bootstrap_form/inputs/grouped_collection_select.rb