ArgumentError (wrong number of arguments (given 6, expected 1..5))
trak3r opened this issue · comments
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
rails (7.0.2.2)
query_diet (0.7.0)
ArgumentError` (wrong number of arguments (given 6, expected 1..5))
no stack trace at all - just that message.
commenting out gem 'query_diet'
and re-running bundle install
resolves it.
database driver is pg (1.3.2)
in case that might be relevant.
perhaps related to changing the signature of the log()
method?
https://github.com/makandra/query_diet/blob/master/lib/query_diet/active_record_ext.rb#L3
rails 7:
I've had difficulty reproducing this, but I think your hunch with the log method is right. I've released version 0.7.1 which hopefully resolves the issue.
This resolved the issue for me. Thank you! 👏🏻
I had the same issue. Upgrading fixed it for me as well.