Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improve error message for #or when it is structurally incompatible | Rafael Mendonça França | 2016-01-13 | 1 | -1/+3 |
| | | | | | | | | When you are using scopes and you chaining these scopes it is hard to know which are the values that are incompatible. This way you can read the message and know for which values you need to look for. [Herminio Torres] | ||||
* | Post.all.or(anything) == Post.all | Sean Griffin | 2015-01-29 | 1 | -2/+2 |
| | |||||
* | Bring the implementation of Relation#or up to speed | Sean Griffin | 2015-01-28 | 1 | -3/+6 |
| | |||||
* | Added #or to ActiveRecord::Relation | Matthew Draper | 2015-01-28 | 1 | -0/+81 |
Post.where('id = 1').or(Post.where('id = 2')) # => SELECT * FROM posts WHERE (id = 1) OR (id = 2) [Matthew Draper & Gael Muller] |