code: def autocomplete(attribute, url, options = {})
        field attribute, options do |opts|
          opts.merge!(update_elements: opts[:update_elements],
                      min_length: 0, value: object.send(attribute))
          autocomplete_field(attribute, url, opts)
        end
      end
docs: rubocop:enable LineLength, ParameterLists