autocomplete_controller.rb revision c503ff8f66c1a2896938cec77ad3d59979bcdae8
#
# 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