alecdotninja / active_record_distinct_on

Support for `DISTINCT ON` statements when querying with ActiveRecord
MIT License
34 stars 11 forks source link

ArgumentError for #build_arel in Rails 7.1 #26

Closed ezekg closed 1 year ago

ezekg commented 1 year ago

Ruby: 3.2.2 Rails: 7.1

ArgumentError:
       wrong number of arguments (given 1, expected 0)
     # /home/zeke/.rvm/gems/ruby-3.2.2/gems/active_record_distinct_on-0.1.3/lib/active_record_distinct_on/distinct_on_query_methods.rb:38:in `build_arel'
     # ...
ezekg commented 1 year ago

Looks like I was on an earlier version. Attempted to update, but the gem currently does not work with Rails 7.1.

Issue: #27