Sha256: e6f1edb9f37ca81a84ff115d7bf0fc4f3accbfb5aa44d3ac08bc0a5e600a6f72

Contents?: true

Size: 494 Bytes

Versions: 11

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true
module SimpleForm
  module Inputs
    class CollectionSelectInput < CollectionInput
      def input(wrapper_options = nil)
        label_method, value_method = detect_collection_methods

        merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

        @builder.collection_select(
          attribute_name, collection, value_method, label_method,
          input_options, merged_input_options
        )
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
simple_form-5.3.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-5.2.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-5.1.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-5.0.3 lib/simple_form/inputs/collection_select_input.rb
simple_form-5.0.2 lib/simple_form/inputs/collection_select_input.rb
simple_form-5.0.1 lib/simple_form/inputs/collection_select_input.rb
simple_form-5.0.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-4.1.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-4.0.1 lib/simple_form/inputs/collection_select_input.rb
simple_form-4.0.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.5.1 lib/simple_form/inputs/collection_select_input.rb