Sha256: c0a2fec42b6f70a6ea42750acd666060e28be95bf3cffe291f4c0a9b3aaf2e87

Contents?: true

Size: 473 Bytes

Versions: 3

Compression:

Stored size: 473 Bytes

Contents

module Formtastic
  module Inputs
    class SelectizeInput < Formtastic::Inputs::SelectInput
      include Formtastic::Inputs::Base

      def input_html_options
        super.merge( class: 'selectized' )
      end

      # def collection
      #   if !options[:collection] && column
      #     object.send( column.name ).map { |row| [ row.respond_to?( :name ) ? row.name : row.to_s, row.id ] }
      #   else
      #     super
      #   end
      # end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin_selectize-0.1.3 lib/formtastic/inputs/selectize_input.rb
activeadmin_selectize-0.1.2 lib/formtastic/inputs/selectize_input.rb
activeadmin_selectize-0.1.0 lib/formtastic/inputs/selectize_input.rb