class SimpleForm::Inputs::AutocompleteInput
Protected Instance Methods
has_placeholder?()
click to toggle source
# File lib/rails-autocomplete/simple_form_plugin.rb, line 25 def has_placeholder? placeholder_present? end
input(args = nil)
click to toggle source
# File lib/rails-autocomplete/simple_form_plugin.rb, line 29 def input(args = nil) # This branching is to deal with a change beginning in simple_form 3.0.2 and above to ensure backwards compatibility if args.nil? @builder.autocomplete_field( attribute_name, options[:url], rewrite_autocomplete_option ) else @builder.autocomplete_field( attribute_name, options[:url], merge_wrapper_options(rewrite_autocomplete_option, args) ) end end
limit()
click to toggle source
# File lib/rails-autocomplete/simple_form_plugin.rb, line 21 def limit column && column.limit end