ransack v1.8.3 Release Notes

Release Date: 2017-06-15 // over 5 years ago
  • โž• Added

    • Add a config option to customize the up and down arrows used for direction indicators in Ransack sort links. PR #726.

      Garett Arrowood

    • Add ability to turn off sanitization of custom scope arguments. PR #742.

      Garett Arrowood

    ๐Ÿ›  Fixed

    • Use class attributes properly so that inheritance is respected. PR #717. This fixes two bugs:
    1. In the Mongoid adapter, subclasses were not properly inheriting their
       parents' Ransack aliases because each class defined its own set of
    2. In the Active Record adapter, Ransack aliases were defined in such a way
       that the parent's (and grandparent's, etc.) aliases were overwritten by
       the child, meaning that all aliases were ultimately kept on
       `ActiveRecord::Base`. This had the unfortunate effect of enforcing
       uniqueness of Ransack alias names across all models rather than per
       model. Depending on the load order of models, earlier definitions of an
       alias in other models were clobbered.
    *Steve Richert (laserlemon)*
    • ๐Ÿ‘ Use ActiveSupport.on_load hooks to include Ransack in Active Record, avoiding autoloading the constant too soon. PR #719. Reference: This comment in rails#23589.

      Yuji Yaginuma (y-yagi)