Sha256: f365df5d4876ff93c9c932f4be3cd3bf7ebc1eabe3cba8ec6dbfd479e5696293

Contents?: true

Size: 278 Bytes

Versions: 3

Compression:

Stored size: 278 Bytes

Contents

class SimpleForm::Inputs::Select2Input < SimpleForm::Inputs::CollectionSelectInput
  extend ActiveSupport::Autoload

  def input_html_options
    input_options = super
    input_options[:class] = [input_options[:class], 'auto-static-select2'].compact
    input_options
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_form_auto_select2-0.0.5 lib/simple_form/inputs/select2_input.rb
simple_form_auto_select2-0.0.4 lib/simple_form/inputs/select2_input.rb
simple_form_auto_select2-0.0.3 lib/simple_form/inputs/select2_input.rb