Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Change Collection#where so it behaves like Model#where #2001
The fact that there are two methods called
The current behavior of
Current PR Issues
This change is not backwards compatible. Check the migration guide on how to change your code if you were relying on any of the
- This makes it behave like the equivalent Model#where method that is just a shortcut for calling `.query('where', ...args)`.
- It's a bit confusing considering the similarity of its name with Collection#where, and it's not needed since the same functionality can be achieved by using Collection#filter.