Return disable_joins patch that was accidentally removed
What
Return disable_joins patch that was accidentally removed
Why
This patch has been removed along with Rails 7 upgrade: c2ca36ad. However, it includes the ability to specify Proc as a value to disable_joins: it's something that Rails doesn't provide: https://github.com/rails/rails/blob/v7.0.8/activerecord/lib/active_record/associations/association.rb#L44
Edited by Igor Drozdov