lib/redi_search_rails.rb
def ft_sugdel_all (attribute:)
      @model.all.each {|record| ft_sugdel(record: record, attribute: attribute) }
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_sugdel_all (attribute:)
      @model.all.each {|record| ft_sugdel(record: record, attribute: attribute) }
    rescue Exception => e
      Rails.logger.error e if defined? Rails
      return e.message
    end
def ft_sugdel_all ( attribute : ) @model . all . each { | record | ft_sugdel ( record : record , attribute : attribute ) } rescue Exception => e Rails . logger . error e if defined? Rails return e . message end
delete all values for a model attribute to autocomplete

 @param attribute [String] - name, email, etc
delete all values for a model attribute to autocomplete