forked from brynary/arel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing Table#== as it is not actually used
- Loading branch information
1 parent
19c5a95
commit bef0d30
Showing
3 changed files
with
1 addition
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,7 +129,7 @@ def #{op}(*args) | |
end | ||
|
||
def where clause = nil | ||
clause ? Where.new(self, [clause]) : self | ||
clause ? Where.new(self, Array(clause)) : self | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
raggi
|
||
end | ||
|
||
def skip thing = nil | ||
|
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
Apparently, Array() will break apart a string on newlines - which breaks queries with newlines in them since later in the stack this array is joined unconditonally with ' AND ' - I opened a ticket and assigned it to ya
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5457-arelar-prepending-and-unconditionally-after-newlines-in-string-literals-in-rc2