autocomplete_controller.rb revision ec673e14dad78281cdf99d82a335ec5bd19f95ca
#
# Autocompletion for models
#
MIN_LENGTH = 3
if term.length < MIN_LENGTH
@result = []
else
# add scopes
end
# do the search
type: r.class.to_s,
}}
end
end
end