Permalink
Commits on Mar 11, 2011
  1. Version bump to 0.3.8

    grosser committed Mar 11, 2011
  2. Changes in flexible search options

    francocatena committed with grosser Mar 9, 2011
    Now we can customize the search query with :query => '%{field} LIKE LOWER(%{query})' and the values mask with :mask => '%{value}%'. In this example the generated query is: 'SELECT * FROM models WHERE field_name LIKE LOWER('query_string%') ORDER BY field_name ASC LIMIT 10'
  3. Added a new option :parameter_operator

    francocatena committed with grosser Mar 4, 2011
    Usefull when you whant do something like "LIKE LOWER(?)"
  4. Search with more flexible configuration

    francocatena committed with grosser Mar 4, 2011
    Now we can add :operator for customize the search operator (defaults to 'LIKE'), :mask for customize the query restriction formar (defaults to '%%%s%') and :column_operator for customize the function applied to the column (defaults to 'LOWER(%s)')
    
    The place holder %s can be used in the :mask and :column_operator arguments to indicate the string place or the column name respectively
    
    For example, if you want to use PostgreSQL full text search:
    
    Model.auto_complete_for_name(:operator => '@@', :mask => 'to_tsquery(%s)', :column_operator => 'to_tsvector(%s)')
    
    This would result in a query like "SELECT * FROM models WHERE to_tsvector(name) @@ to_tsquery('some text') ORDER BY name ASC LIMIT 10"
  5. remove trailing whitespace

    grosser committed Mar 11, 2011
Commits on Feb 3, 2011
  1. Version bump to 0.3.7

    grosser committed Feb 3, 2011
  2. bundle

    grosser committed Feb 3, 2011
  3. who needs changelogs...

    grosser committed Feb 3, 2011
  4. update readme

    grosser committed Feb 3, 2011
Commits on Feb 2, 2011
Commits on Jun 28, 2010
  1. Version bump to 0.3.6

    grosser committed Jun 28, 2010
  2. bugifx

    grosser committed Jun 28, 2010
Commits on Jun 24, 2010
  1. refactor/dry-up add_by_autocomplete code and rename to add_by_auto_mo…

    grosser committed Jun 24, 2010
    …del_attribute for consitency
Commits on Jun 23, 2010
  1. add_by_autocomplete() tests

    oliverbarnes committed Jun 23, 2010
Commits on Jun 15, 2010
Commits on May 12, 2010
  1. Version bump to 0.3.5

    grosser committed May 12, 2010
  2. Merge branch 'mergee'

    grosser committed May 12, 2010
Commits on May 8, 2010
  1. Version bump to 0.3.4

    grosser committed May 8, 2010
  2. add specs for match

    grosser committed May 8, 2010
  3. add matches option

    grosser committed May 8, 2010
Commits on May 6, 2010
  1. changed to allow the optional passing of an array of multiple fields …

    Mark committed May 6, 2010
    …to match against
Commits on Apr 14, 2010