ActiveRecordExtended v1.2.0 Release Notes

Release Date: 2019-08-11 // over 4 years ago
  • ๐Ÿ”„ Changes

    • Introduce .foster_select a helper for select statements that can handel aliasing and provides casting options for many common aggregate functions. ๐Ÿ‘Œ Supports any aggregate that does not require multiple arguments (COUNT, AVG, MAX, ARRAY_AGG, etc..): Aggregate Functions
      • Supports Aggregate DISTINCT and ORDER BY inner expressions.
    • โฌ‡๏ธ Reduced the code foot-print for declaring new Arel functions
    • Introduce new Arel::Nodes::AggregateFunctionName for dealing with inline-ing ORDER BY (will be expanded to handel FILTER next)
    • ๐ŸŽ Code cleanup and some minor performance tweaks
    Changes to .select_row_to_json
    • Argument-less scoped blocks (inner-block argument is now optional)
    • cast_with:
      • Supported options: true (array), :array, :array_agg, distinct, and :to_jsonb
    • order_by: : Accepts ActiveRecord like options for ordering responses from an array or aggregated array

    ๐Ÿ›  Bugfixes

    • ๐Ÿ‘ #26 Support for class namespace for inet_contains @znakaska
    • ๐Ÿ›  #27 Fixed TO_JSONB class name typo that would cause an exception