Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure JoinAssociation uses aliased table name when multiple associat…
…ions have hash conditions on the same table
- Loading branch information
Showing
5 changed files
with
12 additions
and
5 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 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 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 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 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
489abfd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I'm having a problem with this commit. I call merge_conditions from ActiveRecord::Base statically on several places on my application. Now with your commit I can't use it anymore, because merge_conditions calls sanitize_sql, that depends on a table name, so my application is crashing because table_name doesn't exist when you call ActiveRecord::Base.merge_conditions. Any tip on how to solve it?