Sha256: 66cb03274cd4ad28b5c7aad807c059d2804bed2ea4c382fc085d62ffe6214d40
Contents?: true
Size: 785 Bytes
Versions: 3
Compression:
Stored size: 785 Bytes
Contents
# # Load the formtastic plugin if using Formtastic # begin require 'formtastic' begin require "formtastic/version" rescue LoadError end if defined?(Formtastic::VERSION) # # Formtastic 2.x # module Formtastic module Inputs class AutocompleteInput include Base include Base::Stringish def to_html input_wrapping do label_html << builder.autocomplete_field(method, options.delete(:url), input_html_options) end end end end end else # # Formtastic 1.x # class Formtastic::SemanticFormBuilder < ActionView::Helpers::FormBuilder include Rails4Autocomplete::FormtasticPlugin end end rescue LoadError end
Version data entries
3 entries across 3 versions & 1 rubygems