Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add equality to ALL THE THINGS (that matter) | Ernie Miller | 2012-08-18 | 1 | -0/+7 |
| | | | | | | | | | | | | People are often trying to use ARel nodes inside ActiveRecord, and when they do so, lots of things can break, because ActiveRecord relies on Array#uniq and sometimes hash key equality to handle values that end up in wheres, havings, etc. By implementing equality for all the nodes, we should hopefully be able to prevent any nodes (even nodes containing other nodes) from failing an equality check they should otherwise pass, and alleviate many of these errors. Fixes #130 | ||||
* | Remove short circuit evaluation and leave AST as it is | Daniel Cadenas | 2011-08-03 | 1 | -11/+0 |
| | |||||
* | Add nodes for boolean constants | Daniel Cadenas | 2011-08-03 | 1 | -0/+17 |
This is useful for dynamically created predicates e.g: expr1 = table.create_false expr2 = table.create_false expr1 = create_a_predicate() if some_condition expr2 = create_another_predicate() if some_other_condition table.where(expr1.and(expr2)) |