-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rails suggests model.where(id: model.joins(:other_model).where('a=b')) we did the same. this method expects arel coming back, that is the reason we used the arel nodes. using primary_attribute.in(...) botched up the in clause, so we resorted to the longer version of declaring the in clause. wish it was not joining to Vm, but that is the ruby produced.
- Loading branch information
Showing
3 changed files
with
25 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters