Sha256: 108465f13a368a96ac086e33dd6b6f6402a66240fabbd00c4294bcbf23c1bbd6

Contents?: true

Size: 626 Bytes

Versions: 142

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true

class SelectContainerInput < SimpleForm::Inputs::Base
  def input(wrapper_options)
    options_html = input_options.delete(:options_html)

    # since we pass our options by our self (and have to select the correct
    # option), set `selected` to `''` to prevent rails calling
    # `object.send(attribute_name)` only to set `selected` which is not used.
    input_options[:selected] = ""

    merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
    @builder.select(attribute_name, nil, input_options, merged_input_options) do
      options_html
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/inputs/select_container_input.rb
renalware-core-2.1.0 app/inputs/select_container_input.rb
renalware-core-2.0.167 app/inputs/select_container_input.rb
renalware-core-2.0.166 app/inputs/select_container_input.rb
renalware-core-2.0.165 app/inputs/select_container_input.rb
renalware-core-2.0.164 app/inputs/select_container_input.rb
renalware-core-2.0.163 app/inputs/select_container_input.rb
renalware-core-2.0.162 app/inputs/select_container_input.rb
renalware-core-2.0.161 app/inputs/select_container_input.rb
renalware-core-2.0.160 app/inputs/select_container_input.rb
renalware-core-2.0.159 app/inputs/select_container_input.rb
renalware-core-2.0.158 app/inputs/select_container_input.rb
renalware-core-2.0.157 app/inputs/select_container_input.rb
renalware-core-2.0.156 app/inputs/select_container_input.rb
renalware-core-2.0.155 app/inputs/select_container_input.rb
renalware-core-2.0.153 app/inputs/select_container_input.rb
renalware-core-2.0.152 app/inputs/select_container_input.rb
renalware-core-2.0.151 app/inputs/select_container_input.rb
renalware-core-2.0.149 app/inputs/select_container_input.rb
renalware-core-2.0.148 app/inputs/select_container_input.rb