All Versions
9
Latest Version
Avg Release Cycle
123 days
Latest Release
1554 days ago

Changelog History

  • v1.1.2 Changes

    December 24, 2020
    • ➕ Add compatiblity for Rails 6.1
  • v1.1.1 Changes

    April 13, 2020
    • 🛠 Fix handling for ActiveRecord's NullRelation (MyModel.none) in block and association's conditions.
  • v1.1.0 Changes

    February 24, 2020
    • Added methods which return the SQL used by this gem: assoc_exists_sql, assoc_not_exists_sql, compare_assoc_count_sql, only_assoc_count_sql
      Documentation for them
  • v1.0.1 Changes

    October 16, 2019
    • 🛠 Fix broken urls in error messages
  • v1.0.0 Changes

    May 10, 2019
    • 👍 Now supports polymorphic belongs_to
  • v0.1.3 Changes

    June 20, 2018
    • 👉 Use SELECT 1 instead of SELECT 0...
      ... it just seems more natural that way.
    • 🛠 Bugfixes
  • v0.1.2 Changes

    June 10, 2018
    • It is now possible to pass a Range as first argument to #where_assoc_count.
      Ex: Users that have between 10 and 20 posts User.where_assoc_count(10..20, :==, :posts) The operator in that case must be either :== or :!=.
      This will use BETWEEN and NOT BETWEEN.
      Ranges that exclude the last value, i.e. 5...10, are also supported, resulting in BETWEEN 5 and 9. Ranges with infinities are also supported.
  • v0.1.1

    April 17, 2018
  • v0.1.0

    April 14, 2018