CHANGELOG 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Changes since 1.0.4 (2011-04-08):
  2. * Add :join_type option to Builder to allow for using InnerJoin if desired
  3. (Stephen Pike)
  4. * Fix a memory leak in development mode (Bonias)
  5. Changes since 1.0.3 (2011-03-14):
  6. * Be sure not to override form_for options if super returns a non-true value,
  7. fixes a compatibility issue when using client_side_validation
  8. Changes since 1.0.1 (2011-01-18):
  9. * Include all non-boolean types in is_present and is_blank, to match
  10. documentation
  11. * Avoid setting alias to collection_check_boxes and check_boxes against
  12. the base. Fixes issues with SimpleForm compatibility.
  13. * Delegate page method to relation, for Kaminari support.
  14. * Don't check for existence of attributes if the table doesn't exist yet.
  15. Changes since 1.0.0 (2011-01-17):
  16. * Update polymorphic join support to play nicely with MetaWhere
  17. Changes since 0.9.11 (2011-01-06):
  18. * Doc updates only.
  19. Changes since 0.9.10 (2010-11-18):
  20. * Skip attempts to sort if someone passes an empty string to meta_sort
  21. * Allow conditions on search_methods, (attr|assoc)_(un)?searchable using :if.
  22. Option should be an object that responds to call and accepts the
  23. MetaSearch::Builder instance as a parameter. Unused options passed to the
  24. Model.search method will be available for your conditions to act on.
  25. * Access attribute setters if a param is supplied - @search.attr_name(val)
  26. behaves like @search.attr_name = val
  27. Changes since 0.9.9 (2010-11-15):
  28. * Fix bug introduced by new polymorphic belongs_to association code in
  29. honoring :url param to form_for
  30. * Support localization of predicate text in labels
  31. * Fix bug when accessing localizations for named search methods
  32. Changes since 0.9.8 (2010-10-20):
  33. * ARel 2.x and Rails 3.0.2 compatability
  34. * sort_link uses search_key from builder. Search_key defaults to "search"
  35. * sort_link will localize attribute names.
  36. * You can now create two scopes on your model named sort_by_something_asc
  37. and sort_by_something_desc, and sort_link will then allow you to specify
  38. :something as a parameter, then use your scope to perform custom sorting.
  39. Changes since 0.9.7 (2010-10-12):
  40. * Play nicely regardless of MetaWhere/MetaSearch load order.
  41. * Big fix - stop altering the supplied hash in Builder#build.
  42. Changes since 0.9.6 (2010-09-29):
  43. * Support _or_-separated conditions. I'm not crazy about 'em, but it's
  44. an oft-requested feature.
  45. * Support search on polymorphic belongs_to associations. Uses the same
  46. syntax users of Searchlogic are familiar with, association_classname_type.
  47. For example: commentable_article_type_contains
  48. * Join using left outer joins instead of inner joins. This lets you do
  49. some interesting things like search for all articles with no comments via
  50. comments_id_is_null.
  51. * No longer define method on the metaclass - stick to standard method_missing
  52. for both correctness and performance.
  53. Changes since 0.9.5 (2010-09-28):
  54. * Fix issue with formatters supplied as strings
  55. Changes since 0.9.4 (2010-09-18):
  56. * Rename check_boxes and collection_check_boxes to checks and
  57. collection_checks. Alias to the old names if not already taken. This
  58. is to avoid conflicts with SimpleForm.
  59. Changes since 0.9.3 (2010-09-08):
  60. * Minor documentation fixes.
  61. * Add sort_link helper to FormBuilder, to spare keystrokes if sort_links
  62. are being added inside the context of the form_for of the search.
  63. Changes since 0.9.2 (2010-08-25):
  64. * Update dependencies for Rails 3 final.
  65. Changes since 0.9.1 (2010-08-24):
  66. * Fix time column casts to account for current time zone.
  67. Changes since 0.9.0 (2010-08-24):
  68. * Fix the missing "2" in the Rails 3.0.0.rc2 dependency. Sorry!
  69. Changes since 0.5.4 (2010-07-28):
  70. * Fix equals Where against boolean columns
  71. * Add is_true/is_false for booleans, is_present/is_blank for other types
  72. * Add is_null/is_not_null for all types
  73. * Remove deprecated metasearch_exclude_attr and friends
  74. * delegate #size and #length to relation
  75. Changes since 0.5.3 (2010-07-26):
  76. * Add is_true/is_false for boolean columns
  77. * Add is_present and is_blank for string/numeric columns
  78. * Add is_null and is_not_null for all columns
  79. * Fix behavior of equals when used with boolean columns.
  80. Changes since 0.5.2 (2010-07-22):
  81. * Handle nested/namespaced form_for better. Formerly, you could use
  82. "form_for @search" in a view, but not "form_for [:admin, @search]"
  83. Changes since 0.5.1 (2010-07-20):
  84. * Fix fallback for failed cast via to_time or to_date
  85. * add :cast option for custom Wheres, allowing a where to override
  86. the default cast of the incoming parameters.
  87. Changes since 0.5.0 (2010-06-08):
  88. * Fix searching against relations derived from a has_many :through
  89. association