diff options
Diffstat (limited to 'lib/arel/algebra/predicates.rb')
-rw-r--r-- | lib/arel/algebra/predicates.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/arel/algebra/predicates.rb b/lib/arel/algebra/predicates.rb index 2da37af2e7..5e17cdd101 100644 --- a/lib/arel/algebra/predicates.rb +++ b/lib/arel/algebra/predicates.rb @@ -4,11 +4,19 @@ module Arel def or(other_predicate) Or.new(self, other_predicate) end + + def |(other_predicate) + Or.new(self, other_predicate) + end def and(other_predicate) And.new(self, other_predicate) end + def &(other_predicate) + And.new(self, other_predicate) + end + def complement Not.new(self) end |