This project is archived and is in readonly mode.
ActiveRecord::Base.joins no longer accepts nil
-
Matthew Ratzloff
So basically, you just need to call Array#compact on it before handling it in ActiveRecord::QueryMethods.joins. This fixes the issue.
I've attached a monkey patch for others having trouble.
-
Repository
- State changed from new to resolved
(from [40b15f9f389b9394b22cf36567269e54c66c9fc8]) ActiveRecord::Base.joins should allow single nil argument [#6181 state:resolved] https://github.com/rails/rails/commit/40b15f9f389b9394b22cf36567269...
-
Matthew Ratzloff
That fixed it. Thanks, Piotr!
