Sha256: ad31b3cf87028ec5bab1ce38d772a9c07deeecc41c71867af5202602d91f4db7
Contents?: true
Size: 790 Bytes
Versions: 7
Compression:
Stored size: 790 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 RailsJQueryAutocomplete::FormtasticPlugin end end rescue LoadError end
Version data entries
7 entries across 7 versions & 2 rubygems