Sha256: 20f478e2b33790a481a56c1c2ee6900eb9d4057f9428c8a37c7e32371be473e3

Contents?: true

Size: 464 Bytes

Versions: 12

Compression:

Stored size: 464 Bytes

Contents

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

12 entries across 12 versions & 3 rubygems

Version Path
simple_form-3.5.0 lib/simple_form/inputs/collection_select_input.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simple_form-3.4.0/lib/simple_form/inputs/collection_select_input.rb
simple_form-3.4.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.3.1 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.3.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.2.1 lib/simple_form/inputs/collection_select_input.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/simple_form-3.2.0/lib/simple_form/inputs/collection_select_input.rb
simple_form-3.2.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.1.1 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.1.0 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.1.0.rc2 lib/simple_form/inputs/collection_select_input.rb
simple_form-3.1.0.rc1 lib/simple_form/inputs/collection_select_input.rb