Sha256: e21c2d0ccb8e25d4fc41468d1fb9509c1137fa10e0e3d162db884b84d7f4b4b2

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 Bytes

Contents

module CustomInputs
  class SelectInput < SimpleForm::Inputs::CollectionInput
    include UiBibz::Ui::Core::Forms::Selects

    def input(wrapper_options)
      label_method, value_method = detect_collection_methods
      i = UiBibz::Ui::Core::Forms::Selects::SelectField.new(attribute_name, options, input_html_options)

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ui_bibz-2.0.0.alpha28 app/inputs/custom_inputs/select_input.rb
ui_bibz-2.0.0.alpha27 app/inputs/custom_inputs/select_input.rb