aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/sql_literal.rb
diff options
context:
space:
mode:
authorDaniel Cadenas <dcadenas@gmail.com>2011-05-31 00:40:11 -0300
committerDaniel Cadenas <dcadenas@gmail.com>2011-08-03 20:50:03 -0300
commit11f929b5c485adab60ea2d8b515ef2abcf5400f4 (patch)
tree911f4e22c86b8098d218939fbfadb992a0eaaa1d /lib/arel/nodes/sql_literal.rb
parentc9517c1b62e7d8acd5a45f72b148942ff2f549a7 (diff)
downloadrails-11f929b5c485adab60ea2d8b515ef2abcf5400f4.tar.gz
rails-11f929b5c485adab60ea2d8b515ef2abcf5400f4.tar.bz2
rails-11f929b5c485adab60ea2d8b515ef2abcf5400f4.zip
Add nodes for boolean constants
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))
Diffstat (limited to 'lib/arel/nodes/sql_literal.rb')
0 files changed, 0 insertions, 0 deletions