Sha256: 3df41b7546803f04f8119f569dab9adf7c9425cea4c902c26b74412b5c661eab

Contents?: true

Size: 595 Bytes

Versions: 29

Compression:

Stored size: 595 Bytes

Contents

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

29 entries across 29 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/inputs/select_container_input.rb
renalware-core-2.0.15 app/inputs/select_container_input.rb
renalware-core-2.0.14 app/inputs/select_container_input.rb
renalware-core-2.0.13 app/inputs/select_container_input.rb
renalware-core-2.0.12 app/inputs/select_container_input.rb
renalware-core-2.0.11 app/inputs/select_container_input.rb
renalware-core-2.0.9 app/inputs/select_container_input.rb
renalware-core-2.0.8 app/inputs/select_container_input.rb
renalware-core-2.0.7 app/inputs/select_container_input.rb
renalware-core-2.0.5 app/inputs/select_container_input.rb
renalware-core-2.0.4 app/inputs/select_container_input.rb
renalware-core-2.0.3 app/inputs/select_container_input.rb
renalware-core-2.0.2 app/inputs/select_container_input.rb
renalware-core-2.0.1 app/inputs/select_container_input.rb
renalware-core-2.0.0 app/inputs/select_container_input.rb
renalware-core-2.0.0.pre.rc13 app/inputs/select_container_input.rb
renalware-core-2.0.0.pre.rc11 app/inputs/select_container_input.rb
renalware-core-2.0.0.pre.rc10 app/inputs/select_container_input.rb
renalware-core-2.0.0.pre.rc9 app/inputs/select_container_input.rb
renalware-core-2.0.0.pre.rc8 app/inputs/select_container_input.rb