ransack v1.8.0 Release Notes

Release Date: 2016-07-14 // over 7 years ago
  • βž• Added

    • πŸ‘ Support Mongoid 5. PR #636, commit 9e5faf4.

      Josef Ε imΓ‘nek

    • Add optional block argument for the sort_link method. PR #604.

      Andrea Dal Ponte

    • Add ransack_alias to allow users to customize the names for long ransack field names. PR #623.

      Ray Zane

    • πŸ‘ Add support for searching on attributes that have been added to Active Record models with alias_attribute (Rails >= 4 only). PR #592, commit 549342a.

      Marten Schilstra

    • Add ability to globally hide sort link order indicator arrows with Ransack.configure#hide_sort_order_indicators = true. PR #577, commit 95d4591.

      Josh Hunter, Jon Atack

    • βœ… Add test for ActionController:Parameter object params in sort_link to ensure Ransack is handling the Rails 5 changes correctly. Commit b1cfed8.

      Ryan Wood

    • βœ… Add failing tests to facilitate work on issue #566 of passing boolean values to search scopes. PR #575.

      Marcel Eeken

    • Add i18n locale files:

      • Taiwanese Hokkien/Mandarin (zh-TW.yml). PR #674. Sibevin Wang
      • Danish (da.yml). PR #663. Kasper Johansen
      • Brazilian Portuguese (pt-BR.yml). PR #581. Diego Henrique Domingues
      • Indonesian (Bahasa) (id.yml). PR #612. Adam Pahlevi Baihaqi
      • Japanese (ja.yml). PR #622. Masanobu Mizutani

    πŸ›  Fixed

    • In FormHelper::SortLink#parameters_hash, convert params#to_unsafe_h only if Rails 5, and add tests. Commit 14e66ca.

      Jon Atack

    • Respect negative conditions for collection associations and fix Mongoid compat. PR #645.

      Andrew Vit

    • Ensure conditions differing only by ransacker_args aren't filtered out. PR #665.

      Andrew Porterfield

    • Fix using aliased attributes in association searches, and add a failing spec. PR #602.

      Marten Schilstra

    • πŸ—„ Replace Active Record table_exists? API that was deprecated here in Rails 5. Commit c9d2297.

      Jon Atack

    • πŸš… Adapt to changes in Rails 5 where AC::Parameters composes a HWIA instead of inheriting from Hash starting from Rails commit rails/rails@14a3bd5. Commit ceafc05.

      Jon Atack

    • βœ… Fix test #sort_link with hide order indicator set to true to fail properly (4f65b09). This spec, added in #473, tested the presence of the attribute name instead of the absence of the order indicators and did not fail when it should.

      Josh Hunter, Jon Atack

    • βœ… Fix rspec-mocks stub deprecation warnings when running the tests. Commit 600892e.

      Jon Atack

    • βͺ Revert f858dd6. Fixes #553 performance regression with the SQL Server adapter.

      sschwing3

    • Fix invalid Chinese I18n locale file name by replacing "zh" with "zh-CN". PR #590.

      Ethan Yang

    πŸ”„ Changed

    • Memory/speed perf improvement: Freeze strings in array global constants and partially move from using global string constants to frozen strings (381a83c and ce114ec).

      Jon Atack

    • Escape underscore _ wildcard characters with PostgreSQL and MySQL. PR #584.

      Igor Dobryn

    • πŸ”¨ Refactor Ransack::Adapters from conditionals to classes (94a404c).

      Jon Atack