aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/sql
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-12 15:25:21 -0800
committerCarl Lerche <carllerche@mac.com>2010-03-12 15:25:21 -0800
commit0e6888232a19c8c59416490d3da6079e590fab77 (patch)
tree43f5157375fdcfb449f245f43dcddabd29208243 /lib/arel/engines/sql
parente13420c86afb5c31e90cff800f121bd49255b939 (diff)
downloadrails-0e6888232a19c8c59416490d3da6079e590fab77.tar.gz
rails-0e6888232a19c8c59416490d3da6079e590fab77.tar.bz2
rails-0e6888232a19c8c59416490d3da6079e590fab77.zip
Add support for a NOT predicate
Diffstat (limited to 'lib/arel/engines/sql')
-rw-r--r--lib/arel/engines/sql/predicates.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/engines/sql/predicates.rb b/lib/arel/engines/sql/predicates.rb
index e563a9ba3e..3756231a46 100644
--- a/lib/arel/engines/sql/predicates.rb
+++ b/lib/arel/engines/sql/predicates.rb
@@ -26,6 +26,10 @@ module Arel
end
end
+ class Not < Binary
+ def predicate_sql; '!=' end
+ end
+
class GreaterThanOrEqualTo < Binary
def predicate_sql; '>=' end
end