Sha256: 0ef8ed03766088284dcd90ae01ed5dbd37b43e45677d7abc0e9c904604da8e1a

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

require "simple_form/inputs/base"

class TokenInput < SimpleForm::Inputs::Base
  #
  # one:
  # <%= f.input :category_id, :as => :token %>
  #
  # many:
  # <%= f.input :category_ids, :as => :token %>
  def input
    @builder.token_field(attribute_name, options)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
token_field-1.1.0 lib/token_field/simple_form/token_input.rb
token_field-1.0.1 lib/token_field/simple_form/token_input.rb
token_field-1.0.0 lib/token_field/simple_form/token_input.rb
token_field-0.0.3 lib/token_field/simple_form/token_input.rb
token_field-0.0.2 lib/token_field/simple_form/token_input.rb