Sha256: dbdbc2f5d669bc2a5432c703f0fc0cfd7fc6c0eaeaf61b43596ff0469d6da9a8
Contents?: true
Size: 354 Bytes
Versions: 5
Compression:
Stored size: 354 Bytes
Contents
class ZipLocalityInput < SimpleForm::Inputs::StringInput def zip_codes SwissMatch.zip_codes.map{|zip| zip.to_s}.inspect end def input input_html_options[:type] = 'text' input_html_options[:autocomplete] = 'off' input_html_options['data-provide'] = 'typeahead' input_html_options['data-source'] = zip_codes super end end
Version data entries
5 entries across 5 versions & 1 rubygems